[NEW] fs: Add btrfs and "simplefs" helpers

This commit is contained in:
Andrea Rogers 2024-11-02 23:03:54 -05:00
commit c47bf4777c
2 changed files with 56 additions and 0 deletions

11
mk/simplefs.mk Normal file
View file

@ -0,0 +1,11 @@
FSOPTS ?= defaults,discard,noatime
$(MOUNTPOINT)/.mount-done: $(BLKDEV)$(P)2 $(MOUNTPOINT)
$(DOSU) mount -o $(FSOPTS) $(BLKDEV)$(P)$(ROOTFS_PART) $(MOUNTPOINT)
$(DOSU) mkdir -p $(MOUNTPOINT)/boot
$(DOSU) mount -o $(FSOPTS) $(BLKDEV)$(P)$(BOOTFS_PART) $(MOUNTPOINT)/boot
$(DOSU) touch $@
umount:
$(DOSU) umount $(MOUNTPOINT)/boot || :
$(DOSU) umount $(MOUNTPOINT) || :