Ignore:
Timestamp:
Jun 13, 2009, 10:33:39 PM (15 years ago)
Author:
broder
Message:

In invirt-autoinstaller:

  • Be more specific when replacing root= lines with UUID equivalents in the grub menu.lst. This avoids replacing things like groot, which makes pygrub unhappy.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-autoinstaller/common/usr/lib/xen-tools/debian.d/93-setup-grub

    r2343 r2359  
    8686    esac
    8787done
    88 sed -i -e "s#root=[^ ]*#root=UUID=$ROOT_UUID#" ${prefix}/boot/grub/menu.lst
    89 sed -i -e "s#${ROOT_GUEST}#UUID=${ROOT_UUID}#" ${prefix}/etc/fstab
    90 sed -i -e "s#${SWAP_GUEST}#UUID=${SWAP_UUID}#" ${prefix}/etc/fstab
     88sed -i -re "s%^(# *kopt=.*root=)[^ ]*%\1UUID=$ROOT_UUID%" ${prefix}/boot/grub/menu.lst
     89sed -i -e "s%${ROOT_GUEST}%UUID=${ROOT_UUID}%" ${prefix}/etc/fstab
     90sed -i -e "s%${SWAP_GUEST}%UUID=${SWAP_UUID}%" ${prefix}/etc/fstab
    9191
    9292#
Note: See TracChangeset for help on using the changeset viewer.