Quoting Olaf Meeuwissen ([email protected]):

> I used to mount /usr read-only on my server machines but that quickly
> becomes a bore when you need to install security upgrades every so
> often.

Suggestion:  Make remounting an automatic part of package operations.

/etc/apt/apt.conf:

DPkg {
    // Auto re-mounting of a read-only /usr
    Pre-Invoke { "mount -o remount,rw /usr"; };
    Post-Invoke { "test ${NO_APT_REMOUNT:-no} = yes || mount -o remount,ro /usr 
|| true"; };
};
_______________________________________________
Dng mailing list
[email protected]
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Reply via email to