We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f575729 commit 14c0eb9Copy full SHA for 14c0eb9
scripts/mdinit
@@ -24,9 +24,12 @@ mdinit_start()
24
/sbin/mount -t tmpfs tmpfs /usr
25
/rescue/gzip -d -c /.usr.tar.gz | /rescue/tar -x -C / -f -
26
fi
27
- /sbin/mount -t tmpfs tmpfs /var/db/pkg
28
- mkdir -p /var/cache/pkg
29
- /sbin/mount -t tmpfs tmpfs /var/cache/pkg
+ # Check if we are using roothack
+ if ! /sbin/mount -t tmpfs | /usr/bin/grep -q " /rw "; then
+ /sbin/mount -t tmpfs tmpfs /var/db/pkg
30
+ mkdir -p /var/cache/pkg
31
+ /sbin/mount -t tmpfs tmpfs /var/cache/pkg
32
+ fi
33
}
34
35
load_rc_config $name
0 commit comments