rootfs-block: avoid remount when options don't change
authorDaniel Drake <dsd@laptop.org>
Wed, 11 Apr 2012 22:00:43 +0000 (23:00 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 16 Apr 2012 09:53:04 +0000 (11:53 +0200)
commit6625b74e90a0b6918c90c408215e76719e459883
tree45ce1d757ec7521d919a44c658f454a58a2df06c
parentbd3bf2ce41379459e79b9f48027d457caecce30a
rootfs-block: avoid remount when options don't change

Mounting, unmounting and then mounting a disk partition takes some
time.

On embedded systems such as OLPC XO where we disable fsck and fstab
reading, the root options are not going to change throughout the
mount_root() function, so remounting is time consuming and without
change.

Detect and optimize for this case so that the filesystem is only
mounted once.
modules.d/95rootfs-block/mount-root.sh