Skip to content

Commit 4b27511

Browse files
committed
scripts/post-fs-data: prevent persist fuckup
expert mode can allow this, but it still shouldn't be done for this one Signed-off-by: backslashxx <[email protected]>
1 parent fa87687 commit 4b27511

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

module/post-fs-data.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,12 @@ mountify_copy() {
214214
echo "$MODULE_ID" >> "$LOG_FOLDER/modules"
215215
}
216216

217+
# prevent this fuckup since on expert mode this isnt checked
218+
if [ "$FAKE_MOUNT_NAME" = "persist" ]; then
219+
echo "mountify/post-fs-data: folder name named $FAKE_MOUNT_NAME is not allowed!" >> /dev/kmsg
220+
exit 1
221+
fi
222+
217223
# make sure its not there
218224
if [ ! "$mountify_expert_mode" = 1 ] && [ -d "$MNT_FOLDER/$FAKE_MOUNT_NAME" ]; then
219225
# anti fuckup

0 commit comments

Comments
 (0)