X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=3793b58eab439def80835e307a0417346c601440;hp=98e0e0edea042543bbcb7c8edc5fc3340612caeb;hb=03a19d66489c0cd75e72b57d3f49c2f01dc42b04;hpb=3264c61424d611142919f18593370b3012dc8a44 diff --git a/grml-debootstrap b/grml-debootstrap index 98e0e0e..3793b58 100644 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -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/