* Handle booting from /dev/xvda.

svn path=/nixos/trunk/; revision=33645
This commit is contained in:
Eelco Dolstra 2012-04-06 12:23:12 +00:00
parent 011e389390
commit 852e513638
2 changed files with 2 additions and 1 deletions

View File

@ -255,6 +255,7 @@ mountFS() {
# Try to find and mount the root device.
sleep 3
mkdir /mnt-root
mountPoints=(@mountPoints@)

View File

@ -92,7 +92,7 @@ with pkgs.lib;
diskNr=0
diskForAufs=
for device in /dev/xvd*; do
if [ "$device" = /dev/xvda1 ]; then continue; fi
if [ "$device" = /dev/xvda -o "$device" = /dev/xvda1 ]; then continue; fi
fsType=$(blkid -o value -s TYPE "$device" || true)
if [ "$fsType" = swap ]; then
echo "activating swap device $device..."