hyperreal.coffee

Install systemd-boot on Debian

1sudo mkdir /boot/efi/loader
2printf "default systemd\ntimeout 5\neditor 1\n" | sudo tee /boot/efi/loader/loader.conf
3sudo mkdir -p /boot/efi/loader/entries
4sudo apt install -y systemd-boot
5sudo bootctl install --path=/boot/efi

Check efibootmgr.

1sudo efibootmgr
2
3Output:
4BootOrder: 0000,0001
5Boot0000* Linux Boot Manager

Mount NFS share

Create a unit file at /etc/systemd/system/mnt-backup.mount. The name of the unit file must match the Where directive. Ex. Where=/mnt/backup –> mnt-backup.mount.

 1[Unit]
 2Description=borgbackup NFS share from TrueNAS (10.0.0.81)
 3DefaultDependencies=no
 4Conflicts=umount.target
 5After=network-online.target remote-fs.target
 6Before=umount.target
 7
 8[Mount]
 9What=10.0.0.81:/mnt/coffeeNAS/backup
10Where=/mnt/backup
11Type=nfs
12Options=defaults
13
14[Install]
15WantedBy=multi-user.target

Reply to this post by email ↪