7
root=$(echo "$line" | sed 's/.*root=//;s/ .*//')
9
UUID=*|LABEL=*|/dev/disk/*|/dev/mapper/*|/dev/evms/*|/dev/md[0-9]*)
12
if [ -L "$root" ] && readlink "$root" | grep -q "^/dev/mapper/"
15
elif [ -b "$root" ]; then
16
uuid=$(/sbin/vol_id -u "$root" || true)
17
if [ -n "$uuid" ]; then
18
byuuid=$(echo "$line" | sed "s#\(.*root=\)[^ ]*#\1/dev/disk/by-uuid/$uuid#")
23
if [ -n "$byuuid" ]; then
32
if [ -f silo.conf.uuid ]; then
37
cat /boot/silo.conf | { while read line; do
40
convert_to_uuid "$line" >> /boot/silo.conf.uuid
43
echo $line >> /boot/silo.conf.uuid
47
export IFS="${OLDIFS}"
48
cp /boot/silo.conf /boot/silo.conf.pre-uuid
49
cp /boot/silo.conf.uuid /boot/silo.conf
50
rm /boot/silo.conf.uuid
53
# if we are upgrading there is no real need to invoke siloconfig
55
if [ -n "$2" ] && [ -f /boot/silo.conf ]; then
57
if dpkg --compare-versions "$2" lt "1.4.13-1ubuntu5"; then