mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
init: mount separate /usr
This commit is contained in:
parent
23c4cf94c8
commit
99d516746e
1 changed files with 9 additions and 0 deletions
|
@ -103,6 +103,15 @@ else
|
|||
launch_interactive_shell --exec
|
||||
fi
|
||||
|
||||
# mount /usr if it exists
|
||||
if [ -f /new_root/etc/fstab ]; then
|
||||
if usr_source=$(findmnt -nero source -s/new_root/etc/fstab /usr); then
|
||||
mountopts=$(findmnt -nero options -s/new_root/etc/fstab /usr)
|
||||
fsck_device "$usr_source"
|
||||
mount "$usr_source" /new_root/usr -o "$mountopts"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "${break}" = "postmount" ]; then
|
||||
echo ":: Post-mount break requested, type 'exit' to resume operation"
|
||||
launch_interactive_shell
|
||||
|
|
Loading…
Reference in a new issue