aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorMarvin Borner2022-02-05 00:50:39 +0100
committerMarvin Borner2022-02-05 00:50:39 +0100
commit9a663721cd8dc4bfb5bcea507484cbf98c3ec057 (patch)
tree23111f5d23e1b89d87540b98593a77ca071a2658 /makefile
parente4b01ac99b3d13c5d1057eacc04757cea957cbd7 (diff)
Directory creation
Diffstat (limited to 'makefile')
-rw-r--r--makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/makefile b/makefile
index 857a080..9deaf58 100644
--- a/makefile
+++ b/makefile
@@ -45,13 +45,13 @@ $(MNT):
@mkdir -p $@
mount: disk $(MNT)
- @DEV=$$(losetup -a | grep $(BUILD)/disk.img | grep -m 1 -o '/dev/loop[[:digit:]]*') && \
+ @DEV=$$($(SU) losetup -a | grep $(BUILD)/disk.img | grep -m 1 -o '/dev/loop[[:digit:]]*') && \
PART="p1" && \
($(SU) $(BUILD)/marfs_fuse "$$DEV$$PART" -f $(MNT) -o allow_other &) && \
echo "Mounted $$DEV$$PART"
umount:
- @DEV=$$(losetup -a | grep $(BUILD)/disk.img | grep -m 1 -o '/dev/loop[[:digit:]]*') && \
+ @DEV=$$($(SU) losetup -a | grep $(BUILD)/disk.img | grep -m 1 -o '/dev/loop[[:digit:]]*') && \
$(SU) losetup -d "$$DEV" && \
$(SU) umount $(MNT) && \
echo "Unmounted $$DEV$$PART" || \