From cfeadc7b40fda3c80d5f7707e72f35834115e0d9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Thu, 16 Jan 2020 14:23:31 +0100 Subject: [PATCH] subvol target --- Makefile | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 8da2961..1b1af09 100644 --- a/Makefile +++ b/Makefile @@ -86,6 +86,20 @@ else ifdef image _umount: _img_mount _config _bootloader_pc _mbr: _partcopy _bootloader_pc +else ifdef subvol + SYSROOT := sys_root_${release}/ + CFGROOT := cfg_root/ + + _target: _install _config ${subvol} + + _bootstrap: + _install: _bootstrap + _copy: _install + _config: _copy + + ${subvol}: _config + btrfs sub snap "${CFG_ROOT}" "$@" + else ifdef squash SQUASH := ${squash} SYSROOT := sys_root_${release}/ @@ -118,10 +132,6 @@ else ifdef iso _copy: _install _config: _copy _squash_modules _isosquash: _config -# ${PBOOT}: ${ISOROOT} -# _format_boot: ${PBOOT} -# _efi_mount: ${PBOOT} _format_boot -# _efi_umount: _config _bootloader_iso: _config _iso_image: _bootloader_iso _isosquash # _efi_umount -- 2.39.2