Changeset 2341 for trunk/packages/invirt-autoinstaller/common/usr/lib/xen-tools/debian.d/93-setup-grub
- Timestamp:
- May 3, 2009, 1:41:25 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-autoinstaller/common/usr/lib/xen-tools/debian.d/93-setup-grub
r2339 r2341 79 79 ROOT_UUID="$(vol_id --uuid "$ROOT_DEV")" 80 80 SWAP_UUID="$(vol_id --uuid "$SWAP_DEV")" 81 for i in $(seq 1 "$NUMPARTITIONS"); do 82 var="PARTITION${i}" 83 case "$(echo ${!var} | cut -f1 -d:)" in 84 disk) ROOT_GUEST="$(echo ${!var} | cut -f8 -d:)";; 85 swap) SWAP_GUEST="$(echo ${!var} | cut -f8 -d:)";; 86 esac 87 done 81 88 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/fstab83 sed -i -e "s#${SWAP_ DEV}#${SWAP_UUID}#" ${prefix}/etc/fstab89 sed -i -e "s#${ROOT_GUEST}#${ROOT_UUID}#" ${prefix}/etc/fstab 90 sed -i -e "s#${SWAP_GUEST}#${SWAP_UUID}#" ${prefix}/etc/fstab 84 91 85 92 # 86 # Regenerate automagic kernels list 93 # Regenerate automagic kernels list, saving our changes 87 94 # 88 chroot ${prefix} /usr/sbin/update-grub -y95 chroot ${prefix} env UCF_FORCE_CONFFOLD=1 /usr/sbin/update-grub -y 89 96 90 97 #
Note: See TracChangeset
for help on using the changeset viewer.