Update grml-debootstrap unittest.
authorMichael Prokop <mika@grml.org>
Tue, 18 May 2010 10:49:14 +0000 (12:49 +0200)
committerMichael Prokop <mika@grml.org>
Tue, 18 May 2010 10:49:14 +0000 (12:49 +0200)
grml-debootstrap/deploy.sh

index d939827..2708e9a 100644 (file)
@@ -8,6 +8,28 @@ sfdisk /dev/sda <<EOF
 ;
 EOF
 
+# cat << EOT | setup-storage -X -f -
+#disk_config sda
+#primary /    0- - -
+#primary swap 20 swap rw
+#EOT
+
+MIRROR=http://cdn.debian.net/debian
+HOSTNAME=unittest
+SUITE=stable
+TARGET="/dev/sda1"
+PASSWORD="grml"
+
+# TODO: --bootoptions="netscript=$STATUS/DONE"
+
+echo 'y' | grml-debootstrap -m $MIRROR \
+    -r $SUITE -t $TARGET --hostname $HOSTNAME \
+    --password $PASSWORD
+
+# cat << EOT |grml-chroot $TARGET /bin/bash
+
+cat >> $TARGET /etc/rc.local << EOT
+echo $STATUS/DONE
+EOT
 
-yes y | grml2usb --force --fat16 --bootoptions="netscript=$STATUS/DONE" /live/image /dev/sda1
 shutdown -h now