From 8008e43be30c99d520ae3f1438afc44ba17aed98 Mon Sep 17 00:00:00 2001 From: josch Date: Mon, 16 Aug 2010 21:05:55 +0200 Subject: [PATCH] changes to accomodate updates in debian init system for firstboot --- pyneo-rootfs.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pyneo-rootfs.sh b/pyneo-rootfs.sh index fe199d7..0f2e4a1 100755 --- a/pyneo-rootfs.sh +++ b/pyneo-rootfs.sh @@ -235,7 +235,7 @@ fi # firstboot script cat > $ROOTDIR/usr/sbin/firstboot.sh << __END__ #!/bin/sh -rm -f /etc/rcS.d/S99firstboot +chmod -x /usr/sbin/firstboot.sh [ -d /home/persistent ] || mkdir /home/persistent print_exit_status () { @@ -380,7 +380,17 @@ print_yellow "resuming normal boot..." sleep 3 __END__ chmod +x $ROOTDIR/usr/sbin/firstboot.sh -ln -sf /usr/sbin/firstboot.sh $ROOTDIR/etc/rcS.d/S99firstboot + +cat > $ROOTDIR/etc/rc.local << __END__ +#!/bin/sh -e + +if [ -x /usr/sbin/firstboot.sh ]; then + /usr/sbin/firstboot.sh +fi + +exit 0 + +__END__ # cleanup chroot $ROOTDIR apt-get remove cdebootstrap-helper-rc.d -qq