X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=055843a465bf4577e58fa8b20e5287ab0a9a7015;hp=fb8562c470ef02da3135f965d74f56b64eb53b46;hb=95778741daf175619a7a0097b2fea1ac16bd005f;hpb=0d2a5662aaf112fa1ed76b4d715b72efa26f075a diff --git a/grml-debootstrap b/grml-debootstrap index fb8562c..055843a 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -811,13 +811,14 @@ preparechroot() { [ -n "$INSTALL_NOTES" ] && echo "INSTALL_NOTES=$INSTALL_NOTES" >> $CHROOT_VARIABLES [ -n "$ISODIR" ] && echo "ISODIR=$ISO" >> $CHROOT_VARIABLES [ -n "$ISO" ] && echo "ISO=$ISO" >> $CHROOT_VARIABLES - [ -n "$MIRROR" ] && echo "MIRROR=$MIRROR" >> $CHROOT_VARIABLES [ -n "$KEEP_SRC_LIST" ] && echo "KEEP_SRC_LIST=$KEEP_SRC_LIST" >> $CHROOT_VARIABLES + [ -n "$MIRROR" ] && echo "MIRROR=$MIRROR" >> $CHROOT_VARIABLES [ -n "$PACKAGES" ] && echo "PACKAGES=$PACKAGES" >> $CHROOT_VARIABLES + [ -n "$RM_APTCACHE" ] && echo "RM_APTCACHE=$RM_APTCACHE" >> $CHROOT_VARIABLES [ -n "$ROOTPASSWORD" ] && echo "ROOTPASSWORD=$ROOTPASSWORD" >> $CHROOT_VARIABLES + [ -n "$SELECTED_PARTITIONS" ] && echo "SELECTED_PARTITIONS=$SELECTED_PARTITIONS" >> $CHROOT_VARIABLES [ -n "$TARGET" ] && echo "TARGET=$TARGET" >> $CHROOT_VARIABLES [ -n "$TARGET_UUID" ] && echo "TARGET_UUID=$TARGET_UUID" >> $CHROOT_VARIABLES - [ -n "$RM_APTCACHE" ] && echo "RM_APTCACHE=$RM_APTCACHE" >> $CHROOT_VARIABLES cp $VERBOSE $CONFFILES/chroot-script $MNTPOINT/bin/chroot-script chmod 755 $MNTPOINT/bin/chroot-script @@ -945,33 +946,6 @@ chrootscript() { } # }}} -# install booloader grub {{{ -grub_install() { - if [ -z "$GRUB" ] ; then - echo "Notice: \$GRUB not defined, will not install grub therefore." - return 0 - fi - - if ! [ -x "$(which grub-install)" ] ; then - echo "Error: grub-install not available. (Error while installing grub package?)" - return 1 - fi - - if [ -n "$SELECTED_PARTITIONS" ] ; then # using sw-raid - for device in $SELECTED_PARTITIONS ; do - GRUB="${device%%[0-9]}" - einfo "Installing grub on ${GRUB}:" - grub-install --no-floppy --root-directory="$MNTPOINT" "$GRUB" - eend $? - done - else - einfo "Installing grub on ${GRUB}:" - grub-install --no-floppy --root-directory="$MNTPOINT" "$GRUB" - eend $? - fi -} -# }}} - # unmount $MNTPOINT {{{ umount_chroot() { @@ -1011,7 +985,7 @@ fscktool() { # now execute all the functions {{{ for i in mkfs tunefs mount_target debootstrap_system preparechroot \ - execute_pre_scripts chrootscript execute_scripts grub_install umount_chroot \ + execute_pre_scripts chrootscript execute_scripts umount_chroot \ fscktool ; do if stage "${i}" ; then $i && ( stage "${i}" done && rm -f "${STAGES}/${i}" ) || bailout 2 "i"