Why is root filesystem mounted read only while bootup on RHEL7 cloud images when bind mount for /tmp is added to fstab ?
Issue
- ON RHEL7 cloud images or RHEL 7 AMI instances , if a /tmp bind mounted is added , the root filesystem is mounted as read-only .
- Root filesystem is mounted as read-only with following bind mount for /tmp in fstab & startup script .
/etc/fstab:
/tmp /tmp none bind,noexec,nosuid,nodev 0 0
/etc/rc.d/init.d/local:
mount -o remount /tmp
# ln -s /etc/rc.d/init.d/local /etc/rc3.d/S99local
Environment
- Red Hat Enterprise Linux 7 Amazon Machine Images
- Red Hat Enterprise Linux 7 Cloud Image
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
