Execute mount scripts as root
This commit is contained in:
parent
04d3548f27
commit
1588c525c6
1 changed files with 2 additions and 1 deletions
|
@ -287,6 +287,7 @@
|
||||||
mountScript = lib.strings.concatLines (
|
mountScript = lib.strings.concatLines (
|
||||||
builtins.map
|
builtins.map
|
||||||
(_: builtins.concatStringsSep " " [
|
(_: builtins.concatStringsSep " " [
|
||||||
|
"sudo"
|
||||||
"mount"
|
"mount"
|
||||||
"--mkdir"
|
"--mkdir"
|
||||||
(builtins.concatStringsSep " " (builtins.map (_: "-o ${_}") _.mountOptions))
|
(builtins.concatStringsSep " " (builtins.map (_: "-o ${_}") _.mountOptions))
|
||||||
|
@ -297,7 +298,7 @@
|
||||||
|
|
||||||
swapScript = lib.strings.concatLines (
|
swapScript = lib.strings.concatLines (
|
||||||
builtins.map
|
builtins.map
|
||||||
(_: "swapon ${partPath _}")
|
(_: "sudo swapon ${partPath _}")
|
||||||
(builtins.filter (_: _.useSwap) partitions));
|
(builtins.filter (_: _.useSwap) partitions));
|
||||||
in lib.strings.concatLines (
|
in lib.strings.concatLines (
|
||||||
(builtins.map (_: _.script) disks) ++ [
|
(builtins.map (_: _.script) disks) ++ [
|
||||||
|
|
Loading…
Reference in a new issue