X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=7244fbb3e291707d824334c67b343e3860833d1e;hp=23efd5b749f0817cd806d8b3ec053c3ed2b6e71a;hb=72cddf610a02e28d191370c56b23556b1aafc127;hpb=6786ff28083f92b3f86cd12d76e666b2d6aa240e diff --git a/grml-debootstrap b/grml-debootstrap index 23efd5b..7244fbb 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -41,16 +41,17 @@ usage() { echo einfo "Valid options:" echo " - -h|--help Print this usage information and exit. - -v|--version Show summary of options and exit. - - -t|--target Target partition (/dev/...) or directory. - -r|--release Specify release of new Debian system. Supported relases: sarge, etch, lenny and sid. - -m|--mirror Specify mirror which should be used for apt-get/aptitude. - -p|--mntpoint Specify mountpoint that should be used for mounting the target system. - --groot Specify root device for usage in grub (corresponds with \$TARGET). - --grub Where do you want to install grub to? Use grub syntax for specifying. - --password Use specified password as password for user root. Use with caution. + -h|--help Print this usage information and exit. + -v|--version Show summary of options and exit. + + -t|--target Target partition (/dev/...) or directory. + -r|--release Specify release of new Debian system. Supported relases: sarge, etch, lenny and sid. + -m|--mirror Specify mirror which should be used for apt-get/aptitude. + -p|--mntpoint Specify mountpoint that should be used for mounting the target system. + --groot Specify root device for usage in grub (corresponds with \$TARGET). + --grub Where do you want to install grub to? Use grub syntax for specifying. + --password Use specified password as password for user root. Use with caution. + --boot_append Add specified appendline to kernel whilst booting " } @@ -308,6 +309,8 @@ preparechroot() { cp /etc/debootstrap/packages $MNTPOINT/etc/debootstrap/packages cp /etc/debootstrap/variables $MNTPOINT/etc/debootstrap/variables + cp -a /etc/debootstrap/extrapackages/ $MNTPOINT/etc/debootstrap/ + # make sure we can access network [relevant for cdebootstrap] [ -f "$MNTPOINT/etc/resolv.conf" ] || cp /etc/resolv.conf $MNTPOINT/etc/resolv.conf