[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#78834: Support for mounting /usr readonly



Package: general
Severity: wishlist

Hi,

My usual setup is to have /usr mounted readonly and have apt remount it
r/w when it calls dpkg. This saves me about 20 minutes of fsck time, as
/usr has many small files on it.

However, this approach only works as long as no postinst script starts a
daemon on /usr. After that, the filesystem is marked busy and cannot be
properly remounted read-only.

As postinst scripts need r/w access to /usr currently, there is no easy
solution (like unpacking first, remounting, then configuring). An option
would be to split the postinst process. Since not many packages should
need to modify files on /usr in the postinst, this would be actually
doable, however I'm not sure about whether this is actually wanted.

   Simon

-- 
GPG public key available from http://phobos.fs.tum.de/pgp/Simon.Richter.asc
 Fingerprint: DC26 EB8D 1F35 4F44 2934  7583 DBB6 F98D 9198 3292
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!




Reply to: