Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

boot: do not bind mount rofs. #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,7 @@ mount_and_boot() {

# Mount root file system to new mount-point, if unsuccessful, try bind
# mounting current root file system.
if ! $MOUNT $ROOT_ROMOUNTPARAMS "$ROOT_ROMOUNT" 2>/dev/null && \
[ "x$ROOT_ROMOUNTPARAMS_BIND" == "x$ROOT_ROMOUNTPARAMS" ] || \
log "Could not mount $ROOT_RODEVICE, bind mounting..." && \
! $MOUNT $ROOT_ROMOUNTPARAMS_BIND "$ROOT_ROMOUNT"; then
if ! $MOUNT $ROOT_ROMOUNTPARAMS "$ROOT_ROMOUNT" ; then
fatal "Could not mount read-only rootfs"
fi

Expand Down