[Bug 575469] Re: recovery mode mounts filesystems read-write rather than read-only

2011-09-07 Thread Stéphane Graber
Ok, so I have the initial implementation of the fix. The current chosen solution is: - Move friendly-recovery to /lib/recovery-mode - Make it ship its own upstart job starting on "recovery-mode" - Update initramfs-tools to support a new boot parameter "startup-event" that's passed to init - U

[Bug 575469] Re: recovery mode mounts filesystems read-write rather than read-only

2011-08-31 Thread Martin Pitt
** Changed in: friendly-recovery (Ubuntu) Milestone: ubuntu-11.10-beta-1 => ubuntu-11.10-beta-2 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/575469 Title: recovery mode mounts filesystems read-

[Bug 575469] Re: recovery mode mounts filesystems read-write rather than read-only

2011-08-30 Thread Stéphane Graber
Sorry for the mess above, I just remembered we already had bug 234409 for the /usr part of this bug. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/575469 Title: recovery mode mounts filesystems read

[Bug 575469] Re: recovery mode mounts filesystems read-write rather than read-only

2011-08-30 Thread Stéphane Graber
Working on implementing option 2, I noticed that friendly-recovery depends on whiptail which is in /usr/bin. We're not going to be moving whiptail and libnewt out of /usr this cycle but it's definitely something that should happen for next cycle (opening bug tasks for these two). For now, frien

[Bug 575469] Re: recovery mode mounts filesystems read-write rather than read-only

2011-08-28 Thread Stéphane Graber
Option 2 would also get us rid of bug 234409 in the process. I still like the idea of having read-only be an option of mountall as it'd be pretty handy to have in other cases but I guess option 2 is the most likely to be implemented for Oneiric. It's still a pretty significant amount of changes th

[Bug 575469] Re: recovery mode mounts filesystems read-write rather than read-only

2011-08-28 Thread Stéphane Graber
I just had a quick look at mountall and can't find any easy way to mount everything read only. So bypassing mountall at this point means having only the root filesystem mounted in read-only mode, which should work in most cases when people stick to default partitioning. It'll lead to a non worki

[Bug 575469] Re: recovery mode mounts filesystems read-write rather than read-only

2011-08-28 Thread Steve Langasek
Do we really need to change the ui, here? What if we used the existing friendly-recovery options to decide whether or not to tell mountall to mount read-write? I guess the choice of recovery options that require read-write disk is rather clear. I also am not nearly as worried about the UI change

[Bug 575469] Re: recovery mode mounts filesystems read-write rather than read-only

2011-08-28 Thread Chris J
Can you not tell mountall to force ro instead of rw? It's just that ro->rw remounts are easy and safe, while rw->ro remounts are not (you have no guarantee that the filesystem is actually ro in this state). To me it would have seemed like an obvious thing to mount the filesystems ro and remount t

[Bug 575469] Re: recovery mode mounts filesystems read-write rather than read-only

2011-08-28 Thread Stéphane Graber
Ok, so looking at the current code, the problem is that friendly- recovery is started after mountall mounted / as read-write, actually everything that's in my fstab is mounted when friendly-reocvery starts. Most of the options also require read/write access to the filesystem and indeed need pretty

[Bug 575469] Re: recovery mode mounts filesystems read-write rather than read-only

2011-08-24 Thread Steve Langasek
** Changed in: friendly-recovery (Ubuntu Oneiric) Assignee: Surbhi Palande (csurbhi) => Stéphane Graber (stgraber) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/575469 Title: recovery mode moun

[Bug 575469] Re: recovery mode mounts filesystems read-write rather than read-only

2011-05-24 Thread Dave Vasilevsky
A workaround to boot with the root mounted read-only is to edit the grub command line so it includes "init=/bin/bash". Obviously non-ideal, but it lets me run zerofree at least. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://b

[Bug 575469] Re: recovery mode mounts filesystems read-write rather than read-only

2011-05-03 Thread Colin Watson
** Also affects: friendly-recovery (Ubuntu Oneiric) Importance: Undecided Assignee: Surbhi Palande (csurbhi) Status: Confirmed ** Changed in: friendly-recovery (Ubuntu Oneiric) Importance: Undecided => Medium ** Changed in: friendly-recovery (Ubuntu Oneiric) Milestone: None

[Bug 575469] Re: recovery mode mounts filesystems read-write rather than read-only

2011-04-19 Thread Surbhi Palande
** Changed in: friendly-recovery (Ubuntu) Status: New => Confirmed ** Changed in: friendly-recovery (Ubuntu) Assignee: (unassigned) => Surbhi Palande (csurbhi) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.l

[Bug 575469] Re: recovery mode mounts filesystems read-write rather than read-only

2011-01-11 Thread jhansonxi
They are mounted RW because of recovery-mode options like dpkg "Repair broken packages" (actually an upgrade as per bug #45). There is an fsck option that is invisible on Ubuntu 10.04 (Lucid Lynx) due to bug #566200. It creates a flag file, /forcefsck, that is checked for by the mountall.conf