_config: _copy
${subvol}: _config
- btrfs sub snap "${CFG_ROOT}" "$@"
+ btrfs sub snap "${CFGROOT}" "$@"
else ifdef squash
SQUASH := ${squash}
deb http://archive.raspberrypi.org/debian ${release} main
endef
- PACKAGES += firmware-brcm80211 libraspberrypi-bin libraspberrypi0 pi-bluetooth raspberrypi-bootloader raspberrypi-kernel initramfs-tools nilfs-tools
- fstype := nilfs2
+ PACKAGES += firmware-brcm80211 libraspberrypi-bin libraspberrypi0 pi-bluetooth raspberrypi-bootloader raspberrypi-kernel initramfs-tools btrfs-tools
+ fstype := btrfs
_target: _umount _config
_copy: _install _img_mount
_config: _copy _img_mount
_bootloader_raspi: _img_mount
- _umount: _img_mount _config _bootloader_raspi
+ _umount: _copy _config _bootloader_raspi
else
_target:
chroot "$${SYSROOT}" rm /usr/sbin/udevadm
_copy: ${SYSROOT} ${CFGROOT}
+ sync
cp -au "$${SYSROOT}/." "$${CFGROOT}/"
_config: ${CFGROOT}
ifdef raspi
_format_root: ${PROOT}
-umount "$${CFGROOT}/boot" "$${CFGROOT}" "${PROOT}"
- mkfs.nilfs2 -f -L FSROOT "$${PROOT}"
+ mkfs.${fstype} -f -L FSROOT "$${PROOT}"
else
_format_root: ${PROOT}
-umount "$${CFGROOT}/boot" "$${CFGROOT}" "${PROOT}"
mount -t vfat -o loop "$${PBOOT}" "efi/"
_efi_umount: _efi_mount
+ sync
umount efi/ && rmdir efi/
.PHONY: _syslinux_mbr _grub_mbr
|| mount -o loop,offset=2M,sizelimit=${BOOT_MB}M \
-t vfat "$${VOLUME}" "$${CFGROOT}/boot"
-_umount_boot: ${CFGROOT}
+_umount_boot: ${CFGROOT} _config
+ sync
-umount "$${CFGROOT}/boot"
-_umount_root: _umount_boot
+_umount_root: _umount_boot _config
+ sync
umount "$${CFGROOT}" && rmdir "$${CFGROOT}"
_umount: _umount_boot _umount_root