trying out some new tool commands for easier immpermanence with bcache and my setup
This commit is contained in:
parent
03487772ac
commit
1d0cb5e08f
6 changed files with 487 additions and 54 deletions
|
|
@ -125,23 +125,3 @@ mount -t bcachefs --mkdir /dev/$DEVICE /usb_key
|
|||
echo "test" > /usb_key/key
|
||||
umount /usb_key && rmdir /usb_key
|
||||
```
|
||||
|
||||
|
||||
|
||||
## TODO remove notes
|
||||
|
||||
```sh
|
||||
BOOT=sda1
|
||||
PRIMARY=sda2
|
||||
SWAP=sda3
|
||||
swapon /dev/$SWAP
|
||||
keyctl link @u @s
|
||||
DEV_B="/dev/disk/by-uuid/"$(lsblk -o name,uuid | grep $BOOT | awk '{print $2}')
|
||||
DEV_P="/dev/disk/by-uuid/"$(lsblk -o name,uuid | grep $PRIMARY | awk '{print $2}')
|
||||
mount -t bcachefs -o X-mount.subdir=@root $DEV_P /mnt
|
||||
mount -t vfat $DEV_B /mnt/boot --mkdir
|
||||
mount -t bcachefs -o X-mount.mkdir,X-mount.subdir=@nix,relatime $DEV_P /mnt/nix
|
||||
mount -t bcachefs -o X-mount.mkdir,X-mount.subdir=@snapshots,relatime $DEV_P /mnt/.snapshots
|
||||
mount -t bcachefs -o X-mount.mkdir,X-mount.subdir=@persist $DEV_P /mnt/persist
|
||||
nixos-install --flake "git+https://git.joshuabell.xyz/ringofstorms/dotfiles?dir=hosts/i001#i001"
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue