1
Fork 0

Add lapetus live cd emergency script

This commit is contained in:
Matei Adriel 2024-01-18 01:56:50 +01:00
parent d9b438536f
commit f211bbd63d
No known key found for this signature in database

11
scripts/emergency-lapetus.sh Executable file
View 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!"