Changeset 312
- Timestamp:
- Mar 13, 2007 5:19:19 PM (6 years ago)
- Location:
- trunk/debirf
- Files:
-
- 2 edited
-
make-debirf (modified) (6 diffs)
-
plugins/install-kernel (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/debirf/make-debirf
r311 r312 44 44 mkdir -p "$DEBIRF_ROOT" 45 45 /usr/sbin/debootstrap --exclude=aptitude --include=initramfs-tools "$DEBIRF_DISTRO" "$DEBIRF_ROOT" "$DEBIRF_MIRROR" 46 47 > .stage/048 46 } 49 47 … … 54 52 done 55 53 run-parts --verbose "$DEBIRF_PLUGINS" 56 57 > .stage/158 54 } 59 55 … … 65 61 msg "creating debirf initrd..." 66 62 ( cd "$DEBIRF_ROOT" && find * | cpio -H newc --create | gzip ) > "${DEBIRF_LABEL}_${DEBIRF_DISTRO}_${DEBIRF_".cgz 67 > .stage/468 63 } 69 64 … … 90 85 cp extra/boot/"$INITRD" debirf.cgz 91 86 (cd "$DEBIRF_ROOT" && find * | cpio -H newc --create | gzip ) >> debirf.cgz 92 > .stage/493 87 } 94 88 … … 96 90 ##### MAIN ##### 97 91 98 # create checkpoint directory. stages:99 # 0: debootstrap creation100 # 1: plugins101 # 2: install kernel and extract kernel/initrd102 # 3: prune103 # 4: initrd method104 mkdir -p .stage105 106 92 ##### create debootstrap root 107 if [ - f .stage/0] ; then108 msg "it looks like a root already exists at $DEBIRF_ROOT."93 if [ -d "$DEBIRF_ROOT" ] ; then 94 echo "directory $DEBIRF_ROOT already exists." 109 95 read -p "write over? [y|N]: " -n 1 OK ; [ -z $OK ] || echo 110 96 if [ "${OK/y/Y}" = 'Y' ] ; then … … 151 137 > "$DEBIRF_ROOT/etc/mtab" 152 138 # add proc to fstab 153 echo proc /proc proc defaults 0 0 >> "$DEBIRF_ROOT/etc/fstab" 154 155 > .stage/3 139 if ! grep '/proc' root/etc/fstab | grep -q -v "^[:space:]*#" ; then 140 echo proc /proc proc defaults 0 0 >> "$DEBIRF_ROOT/etc/fstab" 141 fi 156 142 157 143 create_initrd_${DEBIRF_METHOD} -
trunk/debirf/plugins/install-kernel
r310 r312 33 33 [ -f "$KERNEL" ] && mv "$KERNEL" extras/boot/$(basename "$KERNEL") 34 34 [ -f "$INITRD" ] && mv "$INITRD" extras/boot/$(basename "$INITRD") 35 36 > .stage/237 35 } 38 39 36 40 37 ##### install kernel
Note: See TracChangeset
for help on using the changeset viewer.

