Changeset 725
- Timestamp:
- Nov 21, 2007 3:14:44 PM (6 years ago)
- Location:
- trunk/debirf
- Files:
-
- 1 added
- 1 deleted
- 8 edited
- 2 copied
- 1 moved
-
debian/changelog (modified) (1 diff)
-
debian/debirf.dirs (deleted)
-
debian/debirf.links (modified) (1 diff)
-
doc (added)
-
doc/example-profiles (moved) (moved from trunk/debirf/fs/etc/debirf/profiles)
-
doc/example-profiles/minimal (copied) (copied from trunk/debirf/fs/etc/debirf/profiles/minimal)
-
doc/example-profiles/minimal/debirf.conf (modified) (1 diff)
-
doc/example-profiles/rescue (copied) (copied from trunk/debirf/fs/etc/debirf/profiles/rescue)
-
doc/example-profiles/rescue/debirf.conf (modified) (1 diff)
-
fs/usr/bin/make-debirf (modified) (8 diffs)
-
fs/usr/share/debirf/debirf.conf.defaults (modified) (1 diff)
-
fs/usr/share/debirf/plugins/a0_prep-root (modified) (2 diffs)
-
fs/usr/share/debirf/plugins/install-kernel (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/debirf/debian/changelog
r720 r725 2 2 3 3 * changed debootstrap to run with fakechroot 4 * changed plugins to run under fakeroot 5 * the above changes mean being root is not necessary to make-debirf. 6 * ***STILL IN DEVELOPMENT*** 4 * changed plugins to run under fakeroot, and debirf_exec to use fakechroot 5 * being root is no longer necessary to make-debirf, therefore make-debirf was moved to /usr/bin/ 6 * debirf can now function with stock debian kernels (as of 2.6.22), in rootfs 7 * /var/lib/debirf no longer included. default buildd is ~/.debirf 8 * removed /etc/debirf in favor of doc/example-profiles 7 9 8 -- Jameson Rollins <jrollins@fifthhorseman.net> Wed, 21 Nov 2007 01:32:50-050010 -- Jameson Rollins <jrollins@fifthhorseman.net> Wed, 21 Nov 2007 15:11:46 -0500 9 11 10 12 debirf (0.5) unstable; urgency=low -
trunk/debirf/debian/debirf.links
r724 r725 1 /usr/share/debirf/plugins/a0_prep-root / etc/debirf/profiles/minimal/plugins/a0_prep-root2 /usr/share/debirf/plugins/a0_motd / etc/debirf/profiles/minimal/plugins/a0_motd3 /usr/share/debirf/plugins/bootlog / etc/debirf/profiles/minimal/plugins/bootlog4 /usr/share/debirf/plugins/hostname / etc/debirf/profiles/minimal/plugins/hostname5 /usr/share/debirf/plugins/install-kernel / etc/debirf/profiles/minimal/plugins/install-kernel6 /usr/share/debirf/plugins/interfaces / etc/debirf/profiles/minimal/plugins/interfaces7 /usr/share/debirf/plugins/root-bashrc / etc/debirf/profiles/minimal/plugins/root-bashrc8 /usr/share/debirf/plugins/z0_remove-locales / etc/debirf/profiles/minimal/plugins/z0_remove-locales9 /usr/share/debirf/plugins/z1_clean-root / etc/debirf/profiles/minimal/plugins/z1_clean-root1 /usr/share/debirf/plugins/a0_prep-root /usr/share/doc/debirf/example-profiles/minimal/plugins/a0_prep-root 2 /usr/share/debirf/plugins/a0_motd /usr/share/doc/debirf/example-profiles/minimal/plugins/a0_motd 3 /usr/share/debirf/plugins/bootlog /usr/share/doc/debirf/example-profiles/minimal/plugins/bootlog 4 /usr/share/debirf/plugins/hostname /usr/share/doc/debirf/example-profiles/minimal/plugins/hostname 5 /usr/share/debirf/plugins/install-kernel /usr/share/doc/debirf/example-profiles/minimal/plugins/install-kernel 6 /usr/share/debirf/plugins/interfaces /usr/share/doc/debirf/example-profiles/minimal/plugins/interfaces 7 /usr/share/debirf/plugins/root-bashrc /usr/share/doc/debirf/example-profiles/minimal/plugins/root-bashrc 8 /usr/share/debirf/plugins/z0_remove-locales /usr/share/doc/debirf/example-profiles/minimal/plugins/z0_remove-locales 9 /usr/share/debirf/plugins/z1_clean-root /usr/share/doc/debirf/example-profiles/minimal/plugins/z1_clean-root 10 10 11 /usr/share/debirf/plugins/a0_prep-root / etc/debirf/profiles/rescue/plugins/a0_prep-root12 /usr/share/debirf/plugins/a0_motd / etc/debirf/profiles/rescue/plugins/a0_motd13 /usr/share/debirf/plugins/apt-get-disk-rescue / etc/debirf/profiles/rescue/plugins/apt-get-disk-rescue14 /usr/share/debirf/plugins/bootlog / etc/debirf/profiles/rescue/plugins/bootlog15 /usr/share/debirf/plugins/hostname / etc/debirf/profiles/rescue/plugins/hostname16 /usr/share/debirf/plugins/install-kernel / etc/debirf/profiles/rescue/plugins/install-kernel17 /usr/share/debirf/plugins/interfaces / etc/debirf/profiles/rescue/plugins/interfaces18 /usr/share/debirf/plugins/root-bashrc / etc/debirf/profiles/rescue/plugins/root-bashrc19 /usr/share/debirf/plugins/serial-terminal / etc/debirf/profiles/rescue/plugins/serial-terminal20 /usr/share/debirf/plugins/z0_remove-locales / etc/debirf/profiles/rescue/plugins/z0_remove-locales21 /usr/share/debirf/plugins/z1_clean-root / etc/debirf/profiles/rescue/plugins/z1_clean-root11 /usr/share/debirf/plugins/a0_prep-root /usr/share/doc/debirf/example-profiles/rescue/plugins/a0_prep-root 12 /usr/share/debirf/plugins/a0_motd /usr/share/doc/debirf/example-profiles/rescue/plugins/a0_motd 13 /usr/share/debirf/plugins/apt-get-disk-rescue /usr/share/doc/debirf/example-profiles/rescue/plugins/apt-get-disk-rescue 14 /usr/share/debirf/plugins/bootlog /usr/share/doc/debirf/example-profiles/rescue/plugins/bootlog 15 /usr/share/debirf/plugins/hostname /usr/share/doc/debirf/example-profiles/rescue/plugins/hostname 16 /usr/share/debirf/plugins/install-kernel /usr/share/doc/debirf/example-profiles/rescue/plugins/install-kernel 17 /usr/share/debirf/plugins/interfaces /usr/share/doc/debirf/example-profiles/rescue/plugins/interfaces 18 /usr/share/debirf/plugins/root-bashrc /usr/share/doc/debirf/example-profiles/rescue/plugins/root-bashrc 19 /usr/share/debirf/plugins/serial-terminal /usr/share/doc/debirf/example-profiles/rescue/plugins/serial-terminal 20 /usr/share/debirf/plugins/z0_remove-locales /usr/share/doc/debirf/example-profiles/rescue/plugins/z0_remove-locales 21 /usr/share/debirf/plugins/z1_clean-root /usr/share/doc/debirf/example-profiles/rescue/plugins/z1_clean-root -
trunk/debirf/doc/example-profiles/minimal/debirf.conf
r691 r725 7 7 8 8 # where to build the debirf 9 #DEBIRF_BUILDD=" /var/lib/debirf"9 #DEBIRF_BUILDD="~/debirf" 10 10 11 11 # the debirf root, used by plugins -
trunk/debirf/doc/example-profiles/rescue/debirf.conf
r691 r725 7 7 8 8 # where to build the debirf 9 #DEBIRF_BUILDD=" /var/lib/debirf"9 #DEBIRF_BUILDD="~/.debirf" 10 10 11 11 # the debirf root, used by plugins -
trunk/debirf/fs/usr/bin/make-debirf
r721 r725 1 #!/bin/bash -e2 3 # make-debirf: script to build debirf system (must be root).1 #!/bin/bash 2 3 # make-debirf: script to build debirf system. 4 4 # 5 5 # The debirf scripts were written by … … 39 39 # exclude aptitude 40 40 mkdir -p "$DEBIRF_ROOT" 41 #/usr/sbin/debootstrap --exclude=aptitude "$DEBIRF_DISTRO" "$DEBIRF_ROOT" "$DEBIRF_MIRROR"42 41 fakeroot -s "$DEBIRF_FAKECHROOT_STATE" fakechroot debootstrap --variant=fakechroot "$DEBIRF_DISTRO" "$DEBIRF_ROOT" "$DEBIRF_MIRROR" 43 42 } … … 48 47 export $var 49 48 done 50 #run-parts --verbose "$DEBIRF_PLUGINS"51 49 fakeroot -i "$DEBIRF_FAKECHROOT_STATE" -s "$DEBIRF_FAKECHROOT_STATE" run-parts --verbose "$DEBIRF_PLUGINS" 52 50 } … … 60 58 61 59 # create root image 62 msg "creating debirf initrd..."63 60 ( cd "$DEBIRF_ROOT" && find * | cpio -H newc --create | gzip ) > "$1" 64 61 } … … 83 80 EOF 84 81 # create root image 85 msg "creating debirf initrd..."86 82 cp initrd.img* "$1" 87 83 ( cd "$DEBIRF_ROOT" && find * | cpio -H newc --create | gzip ) >> "$1" … … 107 103 108 104 # create root image 109 msg "creating debirf initrd..."110 105 ( cd "$DEBIRF_ROOT" && find * | cpio -H newc --create | gzip ) > "$1" 111 }112 113 # mount sys, proc114 mount_proc-sys() {115 msg "mounting proc..."116 mount -t proc proc "$DEBIRF_ROOT/proc"117 msg "mounting sys..."118 mount -t sysfs sys "$DEBIRF_ROOT/sys"119 }120 121 # umount sys, proc122 umount_proc-sys() {123 [ "$DEBIRF_ROOT" ] || exit124 if mount | grep -q "$DEBIRF_ROOT/proc" ; then125 msg "umounting proc..."126 umount "$DEBIRF_ROOT/proc" || failure "Can not umount proc."127 fi128 if mount | grep -q "$DEBIRF_ROOT/sys" ; then129 msg "umounting sys..."130 umount "$DEBIRF_ROOT/sys" || failure "Can not umount sys."131 fi132 106 } 133 107 … … 254 228 setup_debirf_info 255 229 230 # run plugins 256 231 if [ "$DEBIRF_PLUGINS" ] ; then 257 #mount_proc-sys258 259 # run plugins260 232 msg "executing plugins..." 261 233 run_plugins 262 234 msg "plugins complete." 263 264 #umount_proc-sys265 235 fi 266 236 … … 274 244 KERNAVAIL=$(ls -1 "$DEBIRF_ROOT/lib/modules" | head -n1) 275 245 DEBIRF_INITRD="${DEBIRF_LABEL}_${DEBIRF_DISTRO}_${KERNAVAIL}.cgz" 246 msg "creating debirf initrd..." 276 247 create_initrd_${DEBIRF_METHOD} "$DEBIRF_BUILDD/$DEBIRF_INITRD" 277 248 -
trunk/debirf/fs/usr/share/debirf/debirf.conf.defaults
r488 r725 5 5 6 6 # where to build the debirf 7 DEBIRF_BUILDD=${DEBIRF_BUILDD:-" /var/lib/debirf"}7 DEBIRF_BUILDD=${DEBIRF_BUILDD:-"~/.debirf"} 8 8 9 9 # the debirf root, used by plugins -
trunk/debirf/fs/usr/share/debirf/plugins/a0_prep-root
r724 r725 12 12 # or later. 13 13 14 # functions to write files in debirf root /etc15 ### ONLY RUN WITH debirf_exec ! ### 16 write_etc_hostname() { 17 echo "$DEBIRF_LABEL" > /etc/hostname18 } 14 # write all the debirf environment variables to the on-root debirf config file 15 debirf_info_comment 'the following config variables were set during build:' 16 for var in ${!DEBIRF_*}; do 17 debirf_info_sh "${var}=${!var}" 18 done 19 19 20 write_etc_hosts() { 21 cat <<EOF > /etc/hosts 20 # write /etc/hostname 21 echo "$DEBIRF_LABEL" > "${DEBIRF_ROOT}/etc/hostname" 22 23 # write /etc/hosts 24 cat > "${DEBIRF_ROOT}/etc/hosts" <<EOF 22 25 127.0.0.1 localhost $DEBIRF_LABEL 23 26 … … 30 33 ff02::3 ip6-allhosts 31 34 EOF 32 }33 34 # write all the debirf environment variables to the on-root debirf config file35 debirf_info_comment 'the following config variables were set during build:'36 for var in ${!DEBIRF_*}; do37 debirf_info_sh "${var}=${!var}"38 done39 40 # write /etc/hostname41 debirf_exec write_etc_hostname42 # write /etc/hosts43 debirf_exec write_etc_hosts44 35 45 36 # update apt -
trunk/debirf/fs/usr/share/debirf/plugins/install-kernel
r721 r725 21 21 debirf_exec dpkg --install "root/$KNAME" 22 22 # and clean up, just in case there were missing dependencies. 23 debirf_exec apt-get --assume-yes - f install23 debirf_exec apt-get --assume-yes --force-yes -f install 24 24 rm "$DEBIRF_ROOT/root/$KNAME" 25 25 }
Note: See TracChangeset
for help on using the changeset viewer.

