Hi Carsten, [...] > > Is there a way to force FAI to use UUID in /etc/fstab as well as for grub? >
For fstab just use fstabkey:uuid in your disk_config line (which will be the
default 4.0). For grub you will have to use some local hacks AFAIK. I'm using
for grub 1 in boot/grub/menu.lst/preinst
preinst_file=$2
if grep -q "##UUID##" $preinst_file ; then
part="$FAI_ROOT`grep "##UUID##" $preinst_file | perl -p -e
's/^.*##UUID##([^#]*)##.*$/$1/'`"
part="`echo $part | sed 's#//#/#g' | perl -p -e 's#(.)/$#$1#'`"
uuid="`blkid -s UUID -o value \`mount | grep "on $part type" | awk '{ print
$1 }'\``"
perl -p -i -e "s/##UUID##[^#]*##/UUID=$uuid/" $preinst_file
fi
with boot/grub/menu.lst/DEFAULT containing
title Debian GNU/Linux
root (hd0,0)
kernel /vmlinuz root=##UUID##/##
initrd /initrd.img
Hope this helps,
Michael
pgpTNi698BzE6.pgp
Description: PGP signature
