[Bug 1121933] [NEW] umountroot remounts partition readonly when called from libvirt/lxc guest
Launchpad Bug Tracker
1121933 at bugs.launchpad.net
Fri May 17 22:23:48 UTC 2013
You have been subscribed to a public bug:
When a libvirt/lxc guest resides on a partition, which is not /,
/etc/init.d/umountroot will remount that partition read-only on a
"shutdown -r now" in the guest.
Our current workaround is to use
grep -zq '^LIBVIRT_LXC_UUID=' /proc/1/environ
if [ $? -eq 0 ]; then
echo "LXC Container, not mounting / ro..."
else
mount $MOUNT_FORCE_OPT -n -o remount,ro -t dummytype dummydev / 2>/dev/null \
|| mount $MOUNT_FORCE_OPT -n -o remount,ro dummydev / 2>/dev/null \
|| mount $MOUNT_FORCE_OPT -n -o remount,ro /
ES=$?
[ "$VERBOSE" = no ] || log_action_end_msg $ES
fi
# dpkg -l lxc libvirt-bin | cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-================================-============================-==============================================================================
ii libvirt-bin 0.9.8-2ubuntu17.7 programs for the libvirt library
ii lxc 0.7.5-3ubuntu66 Linux containers userspace tools
# lsb_release -dr
Description: Ubuntu 12.04.1 LTS
Release: 12.04
** Affects: lxc (Ubuntu)
Importance: Undecided
Status: New
--
umountroot remounts partition readonly when called from libvirt/lxc guest
https://bugs.launchpad.net/bugs/1121933
You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu.
More information about the Ubuntu-server-bugs
mailing list