* Copy system's /etc/hosts to the target system.
* Move stages to /var/cache/grml-debootstrap (thanks for the idea,
gebi).
+ * Install devices using our own device tarball instead of running
+ MAKEDEV (which is just an ungly fork bomb).
- -- Michael Prokop <mika@grml.org> Thu, 28 Aug 2008 15:06:48 +0200
+ -- Michael Prokop <mika@grml.org> Thu, 28 Aug 2008 15:22:57 +0200
grml-debootstrap (0.17) unstable; urgency=low
# Add here commands to install the package into debian/grml-debootstrap.
install -m 644 config debian/grml-debootstrap/etc/debootstrap/
+ install -m 644 devices.tar.gz debian/grml-debootstrap/etc/debootstrap/
install -m 644 locale.gen debian/grml-debootstrap/etc/debootstrap/
install -m 644 packages debian/grml-debootstrap/etc/debootstrap/
install -m 755 chroot-script debian/grml-debootstrap/etc/debootstrap/
# make sure we have our files for later use via chroot-script
cp /etc/debootstrap/config $MNTPOINT/etc/debootstrap/
# make sure we adjust the configuration variables accordingly:
- sed -i "s/RELEASE=.*/RELEASE='${RELEASE}'/" $MNTPOINT/etc/debootstrap/config
- sed -i "s/TARGET=.*/TARGET='${TARGET}'/" $MNTPOINT/etc/debootstrap/config
- sed -i "s/GRUB=.*/GRUB='${GRUB}'/" $MNTPOINT/etc/debootstrap/config
- sed -i "s/GROOT=.*/GROOT='${GROOT}'/" $MNTPOINT/etc/debootstrap/config
+ sed -i "s/RELEASE=.*/RELEASE=\"${RELEASE}\"/" $MNTPOINT/etc/debootstrap/config
+ sed -i "s/TARGET=.*/TARGET=\"${TARGET}\"/" $MNTPOINT/etc/debootstrap/config
+ sed -i "s/GRUB=.*/GRUB=\"${GRUB}\"/" $MNTPOINT/etc/debootstrap/config
+ sed -i "s/GROOT=.*/GROOT=\"${GROOT}\"/" $MNTPOINT/etc/debootstrap/config
cp /etc/debootstrap/packages $MNTPOINT/etc/debootstrap/packages
cp $CHROOT_VARIABLES $MNTPOINT/etc/debootstrap/variables # do NOT use $CHROOT_VARIABLES inside chroot!
# setup default locales
[ -n "$LOCALES" ] && cp /etc/debootstrap/locale.gen $MNTPOINT/etc/locale.gen
+ # MAKEDEV is just a forking bomb crap, let's do it on our own instead :)
+ ( cd $MNTPOINT/dev && tar jxf /etc/debootstrap/devices.tar.gz )
+
# 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/