Add lapetus live cd emergency script
This commit is contained in:
parent
d9b438536f
commit
f211bbd63d
11
scripts/emergency-lapetus.sh
Executable file
11
scripts/emergency-lapetus.sh
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
echo "Entering shells..."
|
||||||
|
exec nix-shell ./devshells/bootstrap/shell.nix
|
||||||
|
exec nix shell disko
|
||||||
|
echo "Mounting keys"
|
||||||
|
sudo mkdir /hermes
|
||||||
|
sudo mount /dev/disk/by-uuid/7FE7-CA68 /hermes
|
||||||
|
echo "Importing zfs pool"
|
||||||
|
sudo zpool import -lfR /mnt zroot
|
||||||
|
echo "Mounting zfs filesystem"
|
||||||
|
sudo disko --mode mount ./hosts/nixos/lapetus/filesystems/partitions.nix
|
||||||
|
echo "All done!"
|
Loading…
Reference in a new issue