From 8c3af60790f0669453c0418638d301e336af9ac5 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 12 Dec 2020 18:37:19 -0500 Subject: cmd/installer-pc: Support foreign installation --- (limited to 'src') diff --git a/src/cmd/installer-pc.sh b/src/cmd/installer-pc.sh index d85558b..fc58331 100644 --- a/src/cmd/installer-pc.sh +++ b/src/cmd/installer-pc.sh @@ -18,7 +18,7 @@ # along with the ProteanOS Development Kit. If not, see # . -cmd_installer_pc_optstring='a:p:m:' +cmd_installer_pc_optstring='a:p:m:F' _cmd_installer_pc_log_print() { @@ -76,6 +76,7 @@ _cmd_installer_pc_make_partition_and_fs() cmd_installer_pc_main() { + local foreign= local suite= local dev= local profile= @@ -104,6 +105,12 @@ cmd_installer_pc_main() return 1 fi + if [ "x${cmd_installer_pc_opt_F+set}" = 'xset' ]; then + foreign=true + else + foreign=false + fi + suite="${1}" dev="${2}" shift 2 @@ -133,7 +140,7 @@ cmd_installer_pc_main() if ! install_system "${cmd_installer_pc_opt_m-}" "${suite}" \ "${cmd_installer_pc_opt_a-}" \ "${cmd_installer_pc_opt_p-}" \ - "${root}" false; then + "${root}" "${foreign}"; then block_umount "${root}" return 2 fi -- cgit v0.9.1