summary refs log tree commit diff
path: root/etc/init
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-12-09 04:08:15 +0000
committerAlyssa Ross <hi@alyssa.is>2021-12-12 00:37:07 +0000
commita6a715ebc054d6be37546d5679c7213f0218a511 (patch)
tree850a6580e3123762fa6b20f255814109ab3b9785 /etc/init
parente4add51bc949841c85edd45a8d7ae7a22825a8aa (diff)
downloadspectrum-a6a715ebc054d6be37546d5679c7213f0218a511.tar
spectrum-a6a715ebc054d6be37546d5679c7213f0218a511.tar.gz
spectrum-a6a715ebc054d6be37546d5679c7213f0218a511.tar.bz2
spectrum-a6a715ebc054d6be37546d5679c7213f0218a511.tar.lz
spectrum-a6a715ebc054d6be37546d5679c7213f0218a511.tar.xz
spectrum-a6a715ebc054d6be37546d5679c7213f0218a511.tar.zst
spectrum-a6a715ebc054d6be37546d5679c7213f0218a511.zip
etc/probe: loopback mount Spectrum installer images
This will allow trying Spectrum straight from the installer image.
Diffstat (limited to 'etc/init')
-rwxr-xr-xetc/init10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/init b/etc/init
index 503db2c..bb6cf9c 100755
--- a/etc/init
+++ b/etc/init
@@ -40,10 +40,10 @@ if {
 
 background { rm /dev/rootfs /dev/verity }
 
-if { mount /dev/mapper/root-verity /mnt }
-if { mount --move /proc /mnt/proc }
-if { mount --move /sys /mnt/sys }
-if { mount --move /dev /mnt/dev }
+if { mount /dev/mapper/root-verity /mnt/root }
+if { mount --move /proc /mnt/root/proc }
+if { mount --move /sys /mnt/root/sys }
+if { mount --move /dev /mnt/root/dev }
 
-switch_root /mnt
+switch_root /mnt/root
 /etc/init