[NEW] fs: Add btrfs and "simplefs" helpers
This commit is contained in:
parent
fe00065f03
commit
c47bf4777c
2 changed files with 56 additions and 0 deletions
11
mk/simplefs.mk
Normal file
11
mk/simplefs.mk
Normal 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) || :
|
||||
Loading…
Add table
Add a link
Reference in a new issue