From: Paul Hänsch Date: Thu, 16 Jan 2020 13:23:31 +0000 (+0100) Subject: subvol target X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=cfeadc7b40fda3c80d5f7707e72f35834115e0d9;p=blast subvol target --- 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