Lines 20-31
start()
Link Here
|
20 |
elif [ ! -e /etc/mtab ]; then |
20 |
elif [ ! -e /etc/mtab ]; then |
21 |
ln -snf /proc/self/mounts /etc/mtab |
21 |
ln -snf /proc/self/mounts /etc/mtab |
22 |
else |
22 |
else |
23 |
ewarn "The support for updating /etc/mtab as a file is" |
23 |
ewarn "The OpenRC mtab script has been deprecated and will be" |
24 |
ewarn "deprecated and will be removed in the future." |
24 |
ewarn "removed from the boot runlevel in future installs in" |
25 |
ewarn "Please run the following command as root on your system." |
25 |
ewarn "favor of a symlink. The symlink improves compatibility" |
|
|
26 |
ewarn "with mount namespaces and installing it is recommended." |
27 |
ewarn |
28 |
ewarn "You can install the symlink on your system by running" |
29 |
ewarn "the following command as root:" |
26 |
ewarn |
30 |
ewarn |
27 |
ewarn "ln -snf /proc/self/mounts /etc/mtab" |
31 |
ewarn "ln -snf /proc/self/mounts /etc/mtab" |
28 |
ewarn |
32 |
ewarn |
|
|
33 |
ewarn "Afterward, you can remove mtab from the boot runlevel:" |
34 |
ewarn |
35 |
ewarn "rc-update delete mtab boot" |
36 |
ewarn |
29 |
|
37 |
|
30 |
# With / as tmpfs we cannot umount -at tmpfs in localmount as that |
38 |
# With / as tmpfs we cannot umount -at tmpfs in localmount as that |
31 |
# makes / readonly and dismounts all tmpfs even if in use which is |
39 |
# makes / readonly and dismounts all tmpfs even if in use which is |