[opensuse] How to cause zypepr to (re)mount partitions?
Hello, I would like to mount /usr as read-only and not mount /boot at all by default. This seems to work so far, but updating or installing new packages fails. On debian/ubuntu, I could solve this by setting DPkg::Pre-Invoke {"/bin/mount -o remount,rw /usr ";}; DPkg::Post-Invoke {"/bin/mount -o remount /usr ";}; in /etc/apt/apt.conf. Now I am curious: Is there any way to get a similar functionality on opensuse? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 06 of January 2009 12:37:53 Josef Wolf wrote:
Hello,
I would like to mount /usr as read-only and not mount /boot at all by default. This seems to work so far, but updating or installing new packages fails. On debian/ubuntu, I could solve this by setting
DPkg::Pre-Invoke {"/bin/mount -o remount,rw /usr ";}; DPkg::Post-Invoke {"/bin/mount -o remount /usr ";};
in /etc/apt/apt.conf.
Now I am curious: Is there any way to get a similar functionality on opensuse?
Hi, I don't think zypper/libzypp has this functionality, but you can contact the developers on zypp-devel ML. Michal Vyskocil -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, Jan 06, 2009 at 12:37:53PM +0100, Josef Wolf wrote:
I would like to mount /usr as read-only and not mount /boot at all by default. This seems to work so far, but updating or installing new packages fails. On debian/ubuntu, I could solve this by setting
DPkg::Pre-Invoke {"/bin/mount -o remount,rw /usr ";}; DPkg::Post-Invoke {"/bin/mount -o remount /usr ";};
in /etc/apt/apt.conf.
Now I am curious: Is there any way to get a similar functionality on opensuse?
Please file a feature request if you think it's worth. You'll get asked for the intention of your approach. I expect the "usual" this is more secure or this prevents you from deleteting /usr. Not working as root or using sudo might be more efficient. Anyhow, a feature request[1] is the starting point if you like to see something like this. [1] I'm not sure if http://en.opensuse.org/Feature_Wishlist is the current preferred approach for the openSUSE development or if there is a different tool to track features. Ahh it looks like http://en.opensuse.org/Proposals/openFate provides some more information. Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
On Tuesday 06 January 2009 20:53:00 Lars Müller wrote:
On Tue, Jan 06, 2009 at 12:37:53PM +0100, Josef Wolf wrote:
I would like to mount /usr as read-only and not mount /boot at all by default. This seems to work so far, but updating or installing new packages fails. On debian/ubuntu, I could solve this by setting
DPkg::Pre-Invoke {"/bin/mount -o remount,rw /usr ";}; DPkg::Post-Invoke {"/bin/mount -o remount /usr ";};
in /etc/apt/apt.conf.
Now I am curious: Is there any way to get a similar functionality on opensuse?
Please file a feature request if you think it's worth.
You'll get asked for the intention of your approach. I expect the "usual" this is more secure or this prevents you from deleteting /usr.
Not working as root or using sudo might be more efficient.
If you want to have / on Flash/SSD disc, it would be usefull minimize the writes on it. The readonly root make a sense in this case. Regards MV -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Josef Wolf escribió:
DPkg::Pre-Invoke {"/bin/mount -o remount,rw /usr ";}; DPkg::Post-Invoke {"/bin/mount -o remount /usr ";};
As far as I know, ZYPP does not have this functionality. -- "We have art in order not to die of the truth" - Friedrich Nietzsche Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/
participants (4)
-
Cristian Rodríguez
-
Josef Wolf
-
Lars Müller
-
Michal Vyskocil