From f211bbd63deaace1f01484336a014daf5749db41 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Thu, 18 Jan 2024 01:56:50 +0100 Subject: [PATCH] Add lapetus live cd emergency script --- scripts/emergency-lapetus.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/emergency-lapetus.sh diff --git a/scripts/emergency-lapetus.sh b/scripts/emergency-lapetus.sh new file mode 100755 index 0000000..3e9db6a --- /dev/null +++ b/scripts/emergency-lapetus.sh @@ -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!"