Notice: the grml team is migrating from Mercurial to Git.
Please visit git.grml.org instead!
| author | Michael Prokop <mika@grml.org> |
| Tue Feb 13 14:18:49 2007 +0100 (21 months ago) | |
| changeset 53 | 6c1181359453 |
| manifest | 6c1181359453 |
| parent 52 | 1982ed9fca0a |
| child 54 | d90c5df858c1 |
--- a/grml2hd Tue Feb 13 13:57:14 2007 +0100+++ b/grml2hd Tue Feb 13 14:18:49 2007 +0100@@ -4,7 +4,7 @@# Authors: grml-team (grml.org), (c) Andreas Gredler <jimmy@grml.org>, Michael Prokop <mika@grml.org># Bug-Reports: see http://grml.org/bugs/# License: This file is licensed under the GPL v2.-# Latest change: Die Feb 13 13:56:59 CET 2007 [mika]+# Latest change: Die Feb 13 14:18:10 CET 2007 [mika]################################################################################LANG='C'@@ -190,6 +190,16 @@ Please make sure to have enough free spafiif [ $? != 0 ]; thenbailout 4+ fi+}++get_rootpartition() {+ if [ -n "$PARTITION" ] ; then+ PARTUUID="$(/lib/udev/vol_id -u $PARTITION)"+ ROOTPARTITION="UUID=$PARTUUID"+ else+ echo "\$PARTITION not set, error.">&2+ return 1;fi}@@ -392,11 +402,12 @@ copy_files() {}create_fstab() {+ get_rootpartition # we need the UUID syntax for the partition# remount-ro seems to make problems at least when using XFS - check!if [[ $FILESYSTEM == ext* ]] ; then- echo "$PARTITION / $FILESYSTEM errors=remount-ro 0 1" > $TARGET/etc/fstab+ echo "$ROOTPARTITION / $FILESYSTEM errors=remount-ro 0 1" > $TARGET/etc/fstabelse- echo "$PARTITION / $FILESYSTEM defaults 0 1" > $TARGET/etc/fstab+ echo "$ROOTPARTITION / $FILESYSTEM defaults 0 1" > $TARGET/etc/fstabficat /etc/fstab >> $TARGET/etc/fstab}@@ -479,16 +490,6 @@ get_bootparams() {if ! is_grml2hd_noninteractive ; thengrml2hd-bootparamsLILOAPPEND=$(cat /tmp/liloappendline)- fi-}--get_rootpartition() {- if [ -n "$PARTITION" ] ; then- PARTUUID="$(/lib/udev/vol_id -u $PARTITION)"- ROOTPARTITION="root=UUID=$PARTUUID"- else- echo "\$PARTITION not set, error.">&2- return 1;fi}@@ -573,8 +574,8 @@ grub_install() {elseif [ -n "$GRUBDEVICE" ] ; thencp /boot/grub/grml-template_menu.lst /boot/grub/menu.lst- sed -i "s/^# kopt=root=.*/# kopt=ROOTPARTITION ro/" /boot/grub/menu.lst- sed -i "s/^# groot=(*/# groot=${GRUBDEVICE}/" /boot/grub/menu.lst+ sed -i "s/^# kopt=root=.*/# kopt=root=${ROOTPARTITION} ro/" /boot/grub/menu.lst+ sed -i "s/^# groot=.*/# groot=${GRUBDEVICE}/" /boot/grub/menu.lstupdate-grub -yelseecho "Error: could not find a grub device">&2@@ -632,20 +633,20 @@ image=/boot/vmlinuz-$UNAMEimage=/boot/vmlinuz-$UNAMElabel="$UNAME_SHORT"#append="video=vesafb:ypan,1024x768-16@60 ${LILOAPPEND}"- append="grml_from_hd $ROOTPARTITION ${LILOAPPEND}"+ append="grml_from_hd root=$ROOTPARTITION ${LILOAPPEND}"read-onlyvga=0x0317# initrd=ADJUSTMEimage=/boot/vmlinuz-$UNAMElabel="grml-debug"- append="debug log nocolor $ROOTPARTITION ${LILOAPPEND}"+ append="debug log nocolor root=$ROOTPARTITION ${LILOAPPEND}"read-only# initrd=ADJUSTMEimage=/boot/vmlinuz-$UNAMElabel="grml-nofb"- append="video=ofonly $ROOTPARTITION ${LILOAPPEND}"+ append="video=ofonly root=$ROOTPARTITION ${LILOAPPEND}"read-only# initrd=ADJUSTME