* Handle booting from /dev/xvda.
svn path=/nixos/trunk/; revision=33645
This commit is contained in:
parent
011e389390
commit
852e513638
|
@ -255,6 +255,7 @@ mountFS() {
|
|||
|
||||
|
||||
# Try to find and mount the root device.
|
||||
sleep 3
|
||||
mkdir /mnt-root
|
||||
|
||||
mountPoints=(@mountPoints@)
|
||||
|
|
|
@ -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..."
|
||||
|
|
Loading…
Reference in New Issue