nix: move .sec to ../sec and add pass-chomp
[sourcephile-nix.git] / servers / mermet / Makefile
index dd4e0b5d9e9ad661ffc22111f0b797bbd6a24e3c..e24661bcf6920b411474e4086f63629051d0ddc4 100644 (file)
@@ -1,6 +1,6 @@
 #cwd := $(notdir $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST))))))
 NIXOPS_DEPLOYMENT  := maintenance
-mermet_disk        := $(shell sed -ne 's/^device: \(.*\)/\1/p' machine/sfdisk.txt)
+mermet_disk        := $(shell sed -ne 's/^device: \(.*\)/\1/p' sfdisk.txt)
 #mermet_cipher      :=
 mermet_cipher      := aes-128-gcm
 mermet_autotrim    :=
@@ -17,7 +17,7 @@ wipeout: umount
 
 partition:
        sudo modprobe zfs
-       sudo $$(which sfdisk) $(mermet_disk) <machine/sfdisk.txt
+       sudo $$(which sfdisk) $(mermet_disk) <sfdisk.txt
        sudo $$(which sgdisk) --randomize-guids $(mermet_disk)
        sudo partprobe