File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ enableDebug=""
11
11
nixBuildFlags=()
12
12
diskoAttr=" "
13
13
diskoScript=" "
14
- diskoMode=" disko "
14
+ diskoMode=" "
15
15
diskoDeps=y
16
16
nixosSystem=" "
17
17
extraFiles=" "
@@ -358,6 +358,14 @@ parseArgs() {
358
358
359
359
diskoAttr=" ${diskoMode} Script"
360
360
361
+ if [[ ${diskoMode} != " " ]]; then
362
+ if [[ ${diskoScript} != " " ]]; then
363
+ abort " --disko-mode cannot be used if --store-paths is used"
364
+ fi
365
+ else
366
+ diskoMode=disko
367
+ fi
368
+
361
369
if [[ ${diskoDeps} == " n" ]]; then
362
370
diskoAttr=" ${diskoAttr} NoDeps"
363
371
fi
@@ -745,7 +753,7 @@ if [ ! -z ${NIXOS_NO_CHECK+0} ]; then
745
753
export NIXOS_NO_CHECK
746
754
fi
747
755
nixos-install --no-root-passwd --no-channel-copy --system "$nixosSystem "
748
- if [[ ${phases[reboot]} == 1 ] ]; then
756
+ if [ ${phases[reboot]} == 1 ]; then
749
757
if command -v zpool >/dev/null && [ "\$ (zpool list)" != "no pools available" ]; then
750
758
# we always want to export the zfs pools so people can boot from it without force import
751
759
umount -Rv /mnt/
You can’t perform that action at this time.
0 commit comments