This commit is contained in:
iFargle 2023-09-23 21:56:31 +09:00
parent 257f6c6499
commit 3e2a756261

View file

@ -9,7 +9,7 @@ sleep 10
# Import and trust the GPG key # Import and trust the GPG key
echo "Setting up user GPG key..... " echo "Setting up user GPG key..... "
drive=(lsblk -o serial,name | grep -A 012345679518 | awk {'print $2'}) drive=$(lsblk -o serial,name | grep -A 012345679518 | awk {'print $2'})
sudo mkdir /tmp/drive sudo mkdir /tmp/drive
sudo cryptsetup luksOpen /dev/${drive}3 usb-luks sudo cryptsetup luksOpen /dev/${drive}3 usb-luks
sudo mount /dev/mapper/usb-luks /tmp/drive sudo mount /dev/mapper/usb-luks /tmp/drive