Skip to content

Commit

Permalink
remove unnecessary mounts from angler init
Browse files Browse the repository at this point in the history
  • Loading branch information
KireinaHoro committed Jul 10, 2018
1 parent c20f4c6 commit d15ad10
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions devices/angler/initramfs/init
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ die() {

# set up psuedo-filesystems
mount -t devtmpfs none /dev
mount -t proc none /proc
mount -t sysfs none /sys

log Preinit started!
log Trying to mount $USERDATA on $FSROOT...
Expand All @@ -31,7 +29,5 @@ log Setting up $NEWROOT as mountpoint...
mount -o bind,ro $NEWROOT $NEWROOT || die Failed to setup $NEWROOT as mountpoint

log Cleaning up mounts, switching root to $NEWROOT, and launching $NEWINIT...
mount --move /proc $NEWROOT/proc
mount --move /sys $NEWROOT/sys
mount --move /dev $NEWROOT/dev
exec switch_root $NEWROOT $NEWINIT

0 comments on commit d15ad10

Please sign in to comment.