add support for another mountpoint than /mnt

This commit is contained in:
lassulus authored and lassulus committed 2023-01-28 18:08:31 +01:00
1 parent d7e178126f
commit af2da574be
6 files changed
+40 -19

No files matched your search

+7 -1
View File
@@ -25,6 +25,8 @@ Options:
pass value to nix-build. can be used to set disk-names for example
* --argstr name value
pass value to nix-build as string
* --root-mountpoint /mnt
where to mount the device tree
* --dry-run
just show the path to the script instead of running it
* --debug
@@ -54,7 +56,7 @@ while [[ $# -gt 0 ]]; do
shift
;;
-f | --flake)
flake="$2"
flake=$2
shift
;;
--argstr | --arg)
@@ -69,6 +71,10 @@ while [[ $# -gt 0 ]]; do
--dry-run)
dry_run=y
;;
--root-mountpoint)
nix_args+=(--arg rootMountPoint "$2")
shift
;;
--no-deps)
nix_args+=(--arg noDeps true)
;;