8
root=$(echo "$line" | sed 's/.*root=//;s/ .*//')
10
UUID=*|LABEL=*|/dev/disk/*|/dev/mapper/*|/dev/evms/*|/dev/md[0-9]*)
13
if [ -L "$root" ] && readlink "$root" | grep -q "^/dev/mapper/"
16
elif [ -b "$root" ]; then
17
uuid=$(/sbin/vol_id -u "$root" || true)
18
if [ -n "$uuid" ]; then
19
byuuid=$(echo "$line" | sed "s#\(.*root=\)[^ ]*#\1/dev/disk/by-uuid/$uuid#")
24
if [ -n "$byuuid" ]; then
33
if [ -f silo.conf.uuid ]; then
38
cat /boot/silo.conf | { while read line; do
41
convert_to_uuid "$line" >> /boot/silo.conf.uuid
44
echo $line >> /boot/silo.conf.uuid
48
export IFS="${OLDIFS}"
49
cp /boot/silo.conf /boot/silo.conf.pre-uuid
50
cp /boot/silo.conf.uuid /boot/silo.conf
51
rm /boot/silo.conf.uuid
54
# if we are upgrading there is no real need to invoke siloconfig
56
if [ -n "$2" ] && [ -f /boot/silo.conf ]; then
58
if dpkg --compare-versions "$2" lt "1.4.13-1ubuntu5"; then