* Add a hacky for-loop to fix the usage of the continue keyword. (NIXOS-85)
The continue keyword was previously used to mount the next device, but the loop in has been removed. (see r17919) svn path=/nixos/trunk/; revision=17973
This commit is contained in:
parent
f656741395
commit
c195493a32
@ -20,8 +20,8 @@ let
|
|||||||
while test -n "$newDevices"; do
|
while test -n "$newDevices"; do
|
||||||
newDevices=
|
newDevices=
|
||||||
|
|
||||||
${flip concatMapStrings fileSystems
|
${flip concatMapStrings fileSystems (fs: ''
|
||||||
(fs: ''
|
for theContinueKeyword in theFollowingCode; do
|
||||||
mountPoint='${fs.mountPoint}'
|
mountPoint='${fs.mountPoint}'
|
||||||
device='${if fs.device != null then fs.device else "/dev/disk/by-label/${fs.label}"}'
|
device='${if fs.device != null then fs.device else "/dev/disk/by-label/${fs.label}"}'
|
||||||
fsType='${fs.fsType}'
|
fsType='${fs.fsType}'
|
||||||
@ -97,8 +97,8 @@ let
|
|||||||
if ${mount}/bin/mount -t "$fsType" -o "$options" "$device" "$mountPoint"; then
|
if ${mount}/bin/mount -t "$fsType" -o "$options" "$device" "$mountPoint"; then
|
||||||
newDevices=1
|
newDevices=1
|
||||||
fi
|
fi
|
||||||
'')
|
done
|
||||||
}
|
'')}
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user