X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=dcd2b7b713449a558f3ce0cc6d93f1cc94f0f4a6;hp=60358d33d44d1b9b2120d8f875c9939cd4ef199a;hb=773fe9c1cfeb23eb649bd641c5749e9df5373cb6;hpb=14e6e302b573daa4c28bc86909d7aca11f542496 diff --git a/grml-debootstrap b/grml-debootstrap index 60358d3..dcd2b7b 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -30,7 +30,7 @@ MKFS='mkfs.ext3' PACKAGES='yes' PRE_SCRIPTS='yes' RECONFIGURE='console-data' -RELEASE='squeeze' +RELEASE='wheezy' RM_APTCACHE='yes' SCRIPTS='yes' SECURE='yes' @@ -59,7 +59,7 @@ Bootstrap options: -m, --mirror Mirror which should be used for apt-get/aptitude. -i, --iso Mountpoint where a Debian ISO is mounted to, for use instead of fetching packages from a mirror. - -r, --release Release of new Debian system (default: squeeze). + -r, --release Release of new Debian system (default: wheezy). -t, --target Target partition (/dev/...) or directory where the system should be installed to. -p, --mntpoint Mountpoint used for mounting the target system, @@ -493,13 +493,13 @@ prompt_for_bootmanager() # ask for Debian release {{{ prompt_for_release() { - [ -n "$RELEASE" ] && DEFAULT_RELEASE="$RELEASE" || DEFAULT_RELEASE='squeeze' + [ -n "$RELEASE" ] && DEFAULT_RELEASE="$RELEASE" || DEFAULT_RELEASE='wheezy' RELEASE="$(dialog --stdout --title "${PN}" --default-item $DEFAULT_RELEASE --menu \ "Please enter the Debian release you would like to use for installation:" \ 0 50 4 \ - lenny Debian/old-stable \ - squeeze Debian/stable \ - wheezy Debian/testing \ + lenny Debian/5.0 \ + squeeze Debian/6.0 \ + wheezy Debian/7.0 \ sid Debian/unstable)" [ $? -eq 0 ] || bailout } @@ -1011,6 +1011,9 @@ finalize_vm() { rm -f "${MNTPOINT}/tmp/core.img" einfo "Updating grub configuration file." + if [ -n "$BOOT_APPEND" ] ; then + sed -i "/GRUB_CMDLINE_LINUX_DEFAULT/ s#\"\$# ${BOOT_APPEND}\"#" "${MNTPOINT}"/etc/default/grub + fi chroot "${MNTPOINT}" update-grub umount "${MNTPOINT}"/proc