Changeset 2339 for trunk/packages/invirt-autoinstaller
- Timestamp:
- May 3, 2009, 1:19:10 AM (16 years ago)
- Location:
- trunk/packages/invirt-autoinstaller
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-autoinstaller/common/usr/lib/xen-tools/debian.d/93-setup-grub
r2337 r2339 69 69 70 70 # 71 # Since pv_ops kernels force block device names to xvda, xvdb, etc, 72 # the default root value of root=/dev/hda won't actually help us. 73 # 74 # To work around that, find a UUID for the swap and root partitions 75 # and use that in the grub config (and also in /etc/fstab) 76 # 77 ROOT_DEV="$(perl -e 'print $ENV{"image-dev"}')" 78 SWAP_DEV="$(perl -e 'print $ENV{"swap-dev"}')" 79 ROOT_UUID="$(vol_id --uuid "$ROOT_DEV")" 80 SWAP_UUID="$(vol_id --uuid "$SWAP_DEV")" 81 sed -i -e "s#root=[^ ]*#root=UUID=$ROOT_UUID#" ${prefix}/boot/grub/menu.lst 82 sed -i -e "s#${ROOT_DEV}#${ROOT_UUID}#" ${prefix}/etc/fstab 83 sed -i -e "s#${SWAP_DEV}#${SWAP_UUID}#" ${prefix}/etc/fstab 84 85 # 71 86 # Regenerate automagic kernels list 72 87 # -
trunk/packages/invirt-autoinstaller/debian/changelog
r2337 r2339 1 invirt-autoinstaller (0.0.26) unstable; urgency=low 2 3 * Switch the grub config and /etc/fstab to using UUIDs for specifying 4 the boot and swap partitions. 5 6 -- Evan Broder <broder@mit.edu> Sun, 03 May 2009 01:18:45 -0400 7 1 8 invirt-autoinstaller (0.0.25) unstable; urgency=low 2 9
Note: See TracChangeset
for help on using the changeset viewer.