Updated todo
[grml-unittests.git] / grml2hd / common.sh
1 #!/bin/zsh
2
3 . /etc/grml/autoconfig.functions
4
5 STATUS=$(getbootparam status)
6 sfdisk /dev/sda <<EOF
7 1
8 ;
9 EOF
10
11 sed -i "s#^PARTITION=.*#PARTITION=/dev/sda1#" /etc/grml2hd/config
12 sed -i "s#^BOOT_PARTITION=.*#BOOT_PARTITION=/dev/sda#" /etc/grml2hd/config
13 echo 'BOOT_MANAGER="grub"' >> /etc/grml2hd/config
14 echo 'BOOT_APPEND="'netscript=$STATUS/DONE'"' >> /etc/grml2hd/config
15 echo "GRML2HD_FINALIZE='no'" >> /etc/grml2hd/customization
16 GRML2HD_NONINTERACTIVE='yes' grml2hd
17 shutdown -h now