* 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.
|
# Try to find and mount the root device.
|
||||||
|
sleep 3
|
||||||
mkdir /mnt-root
|
mkdir /mnt-root
|
||||||
|
|
||||||
mountPoints=(@mountPoints@)
|
mountPoints=(@mountPoints@)
|
||||||
|
@ -92,7 +92,7 @@ with pkgs.lib;
|
|||||||
diskNr=0
|
diskNr=0
|
||||||
diskForAufs=
|
diskForAufs=
|
||||||
for device in /dev/xvd*; do
|
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)
|
fsType=$(blkid -o value -s TYPE "$device" || true)
|
||||||
if [ "$fsType" = swap ]; then
|
if [ "$fsType" = swap ]; then
|
||||||
echo "activating swap device $device..."
|
echo "activating swap device $device..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user