3 include .lib/nix/Makefile.make
4 include .lib/nixops/Makefile.make
5 include machines/mermet/Makefile
12 nix $(NIX_FLAGS) build -f build \
14 --show-trace $(NIX_BUILD_FLAGS)
20 #sudo zfs mount rpool/ROOT/$(machine)
21 #sudo zfs create -o canmount=noauto -o mountpoint=legacy bpool/BOOT/$(machine)
22 #sudo zfs mount bpool/BOOT/$(machine)
23 #blkid -t TYPE=ext2 $(disk)-part1; test $$? != 2 || \
24 #sudo $$(which mkfs.ext2) $(disk)-part1
25 #sudo $$(which tune2fs) -L mermet-root -m 5 $(disk)-part1
26 #blkid -t TYPE=swap $(disk)-part2; test $$? != 2 || \
27 #sudo $$(which mkswap) -L mermet-swap $(disk)-part2
28 #blkid -t TYPE=ext4 $(disk)-part3; test $$? != 2 || \
29 #sudo $$(which mkfs.ext4) $(disk)-part3
30 #sudo $$(which tune2fs) -L mermet-root -m 5 $(disk)-part3
31 #blkid -t TYPE=ext4 $(disk)-part4; test $$? != 2 || \
32 #sudo $$(which mkfs.ext4) $(disk)-part4
33 #sudo $$(which tune2fs) -L mermet-data -m 0 $(disk)-part4
34 #sudo $$(which gdisk) -l $(disk)
35 #sudo $$(which mdadm) --create /disk/md/$(machine) --level raid1 --raid-devices=2 --metadata=1.2 $(disk) missing