about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew J. Hesford <ajh@sideband.org>2021-05-18 15:55:45 -0400
committerLeah Neukirchen <leah@vuxu.org>2021-05-18 22:47:38 +0200
commit42065ebfb6e886efd9d98f11013494fe1125f14d (patch)
treea39f452538ff6e87dd0aea34b715a174985f8382
parent79c2c60e4fff2ab9716db7b5fc8056731624e942 (diff)
downloadhrmpf-42065ebfb6e886efd9d98f11013494fe1125f14d.tar.gz
hrmpf-42065ebfb6e886efd9d98f11013494fe1125f14d.tar.xz
hrmpf-42065ebfb6e886efd9d98f11013494fe1125f14d.zip
prevent automatic zpool imports
-rw-r--r--.gitignore1
-rwxr-xr-xmkhrmpf.sh5
2 files changed, 6 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 7d5c9a8..09f510f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
 *.xz
 *.iso
 xbps-cachedir*
+hrmpf-include
diff --git a/mkhrmpf.sh b/mkhrmpf.sh
index 8e6a852..90a4362 100755
--- a/mkhrmpf.sh
+++ b/mkhrmpf.sh
@@ -1,5 +1,9 @@
 #!/bin/sh
 
+# Create an empty zpool.cache to prevent importing at boot
+mkdir -p hrmpf-include/etc/zfs
+: > hrmpf-include/etc/zfs/zpool.cache
+
 ./mklive.sh \
 	-T "hrmpf live/rescue system" \
 	-C "loglevel=6 printk.time=1 consoleblank=0 net.ifnames=0" \
@@ -14,3 +18,4 @@
 	-B extra/grub2.iso \
 	-p "$(grep '^[^#].' hrmpf.packages)" \
 	-A "gawk tnftp inetutils-hostname libressl-netcat dash vim-common" \
+	-I hrmpf-include \