Changeset 720
- Timestamp:
- Nov 21, 2007 1:49:21 AM (6 years ago)
- Location:
- trunk/debirf
- Files:
-
- 1 added
- 5 edited
-
debian/changelog (modified) (1 diff)
-
debian/debirf.links (modified) (3 diffs)
-
fs/usr/sbin/make-debirf (modified) (7 diffs)
-
fs/usr/share/debirf/plugins/a0_apt-update (added)
-
fs/usr/share/debirf/plugins/apt-get-disk-rescue (modified) (1 diff)
-
fs/usr/share/debirf/plugins/z1_apt-clean (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/debirf/debian/changelog
r691 r720 1 debirf (0.6) unstable; urgency=low 2 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*** 7 8 -- Jameson Rollins <jrollins@fifthhorseman.net> Wed, 21 Nov 2007 01:32:50 -0500 9 1 10 debirf (0.5) unstable; urgency=low 2 11 -
trunk/debirf/debian/debirf.links
r691 r720 1 /usr/share/debirf/plugins/a0_apt-update /etc/debirf/profiles/minimal/plugins/a0_apt-update 1 2 /usr/share/debirf/plugins/a0_store-config /etc/debirf/profiles/minimal/plugins/a0_store-config 2 3 /usr/share/debirf/plugins/a0_motd /etc/debirf/profiles/minimal/plugins/a0_motd … … 8 9 /usr/share/debirf/plugins/z0_remove-locales /etc/debirf/profiles/minimal/plugins/z0_remove-locales 9 10 /usr/share/debirf/plugins/z1_apt-clean /etc/debirf/profiles/minimal/plugins/z1_apt-clean 10 /usr/share/debirf/plugins/z2_motd_end /etc/debirf/profiles/minimal/plugins/z2_motd_end11 11 12 /usr/share/debirf/plugins/a0_apt-update /etc/debirf/profiles/rescue/plugins/a0_apt-update 12 13 /usr/share/debirf/plugins/a0_store-config /etc/debirf/profiles/rescue/plugins/a0_store-config 13 14 /usr/share/debirf/plugins/a0_motd /etc/debirf/profiles/rescue/plugins/a0_motd … … 21 22 /usr/share/debirf/plugins/z0_remove-locales /etc/debirf/profiles/rescue/plugins/z0_remove-locales 22 23 /usr/share/debirf/plugins/z1_apt-clean /etc/debirf/profiles/rescue/plugins/z1_apt-clean 23 /usr/share/debirf/plugins/z2_motd_end /etc/debirf/profiles/rescue/plugins/z2_motd_end -
trunk/debirf/fs/usr/sbin/make-debirf
r691 r720 1 #!/bin/bash 1 #!/bin/bash -e 2 2 3 3 # make-debirf: script to build debirf system (must be root). … … 39 39 # exclude aptitude 40 40 mkdir -p "$DEBIRF_ROOT" 41 /usr/sbin/debootstrap --exclude=aptitude "$DEBIRF_DISTRO" "$DEBIRF_ROOT" "$DEBIRF_MIRROR" 41 #/usr/sbin/debootstrap --exclude=aptitude "$DEBIRF_DISTRO" "$DEBIRF_ROOT" "$DEBIRF_MIRROR" 42 fakeroot -s "$DEBIRF_FAKECHROOT_STATE" fakechroot debootstrap --variant=fakechroot "$DEBIRF_DISTRO" "$DEBIRF_ROOT" "$DEBIRF_MIRROR" 42 43 } 43 44 … … 47 48 export $var 48 49 done 49 run-parts --verbose "$DEBIRF_PLUGINS" 50 #run-parts --verbose "$DEBIRF_PLUGINS" 51 fakeroot -i "$DEBIRF_FAKECHROOT_STATE" -s "$DEBIRF_FAKECHROOT_STATE" run-parts --verbose "$DEBIRF_PLUGINS" 50 52 } 51 53 … … 133 135 ### MAIN 134 136 135 trap umount_proc-sys EXIT137 #trap umount_proc-sys EXIT 136 138 137 139 if [ "$1" = '-h' -o "$1" = '--help' ] ; then … … 198 200 fi 199 201 fi 200 202 203 # check buildd 204 if [ -z "$DEBIRF_BUILDD" ] ; then 205 failure "DEBIRF_BUILDD is not set." 206 fi 207 208 # check debirf root 209 if [ -z "$DEBIRF_ROOT" ] ; then 210 failure "DEBIRF_ROOT is not set." 211 fi 212 213 # set fakechroot save file 214 DEBIRF_FAKECHROOT_STATE="$DEBIRF_BUILDD/.fakechroot-$DEBIRF_LABEL.save" 215 216 # check variables 201 217 echo "Debirf variables:" 202 218 for var in ${!DEBIRF_*}; do … … 210 226 read -p "enter to continue: " OK 211 227 212 # check buildd213 if [ -z "$DEBIRF_BUILDD" ] ; then214 failure "DEBIRF_BUILDD is not set."215 fi216 217 228 # create debootstrap root 218 if [ -z "$DEBIRF_ROOT" ] ; then219 failure "DEBIRF_ROOT is not set."220 fi221 229 if [ -d "$DEBIRF_ROOT" ] ; then 222 230 echo "Directory $DEBIRF_ROOT already exists." … … 247 255 248 256 if [ "$DEBIRF_PLUGINS" ] ; then 249 mount_proc-sys257 #mount_proc-sys 250 258 251 # update apt 252 debirf_exec apt-get update 253 254 # install plugins 259 # run plugins 255 260 msg "executing plugins..." 256 261 run_plugins 257 262 msg "plugins complete." 258 263 259 umount_proc-sys264 #umount_proc-sys 260 265 fi 261 266 -
trunk/debirf/fs/usr/share/debirf/plugins/apt-get-disk-rescue
r686 r720 12 12 # or later. 13 13 14 debirf_exec apt-get --assume-yes remove --purge aptitude15 16 14 debirf_exec apt-get --assume-yes install less moreutils lvm2 mdadm lsof screen hdparm smartmontools pciutils 17 15 -
trunk/debirf/fs/usr/share/debirf/plugins/z1_apt-clean
r481 r720 12 12 # or later. 13 13 14 debirf_exec apt-get --assume-yes remove --purge aptitude 15 14 16 debirf_exec apt-get clean 15 17 rm "$DEBIRF_ROOT/var/cache/apt/"*.bin
Note: See TracChangeset
for help on using the changeset viewer.

