ARCH := amd64
BOOTSTRAP := http://deb.debian.org/debian
-PACKAGES := ${PACKAGES} apt busybox-static debian-archive-keyring init systemd
CFGROOT := cfg_root
SYSROOT = sys_root_${release}_${ARCH}
+PACKAGES := ${PACKAGES} apt busybox-static debian-archive-keyring init systemd
+
config.mk:
cp "config.example" "$@"
-ifndef config
- include config.mk
-else
- include ${config}
-endif
+config ?= config.mk
+include ${config}
ifndef release
release := trixie
dd bs=1M count=0 seek=${ROOT_MB} of="$${PROOT}"
_partition_raspi: ${VOLUME} .FORCE
- printf "$${PARTLAYOUT}" |sfdisk "$${VOLUME}"
+ printf '%s\n' "$${PARTLAYOUT}" | sfdisk "$${VOLUME}"
_format_root: ${PROOT}
mkfs.${fstype} -L FSROOT "$${PROOT}"