added mdadm and lvm to package list
[grml-debootstrap.git] / grml-debootstrap
index 98e0e0e..cd96f1a 100644 (file)
@@ -104,6 +104,9 @@ einfo "Preparing chroot system"
   # make sure we can access network [relevant for cdebootstrap]
   [ -f "$MNTPOINT/etc/resolv.conf" ] || cp /etc/resolv.conf $MNTPOINT/etc/resolv.conf
 
+  # setup default locales
+  [ -n "$LOCALES" ] && cp /etc/debootstrap/locale.gen  $MNTPOINT/etc/locale.gen
+
   # copy any existing existing files to chroot
   [ -d /etc/debootstrap/boot  ] && cp -a /etc/debootstrap/boot/*  $MNTPOINT/boot/
   [ -d /etc/debootstrap/etc   ] && cp -a /etc/debootstrap/etc/*   $MNTPOINT/etc/
@@ -117,7 +120,8 @@ chroot $MNTPOINT /bin/chroot-script
 eend $?
 
 # einfo "Removing chroot-script"
-# rm -f $MNTPOINT/bin/chroot-script
+# rm -f  $MNTPOINT/bin/chroot-script
+# rm -rf $MNTPOINT/etc/debootstrap/
 # eend $?
 
 einfo "Unmount $MNTPOINT"