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

Re: Read-only root (/) except /etc



On Fri, Apr 11, 2008 at 11:18:08PM -0400, Daniel Dickinson wrote:
> Is it possible to have /etc on a separate partition from / (root) so
> that root can be read-only while /etc is read-write?

You are requesting something like this

in the boot loader, use the kernel option
init=/pre-init.sh
where /pre-init.sh is executable by root and contains something like this:

#!/bin/sh
/bin/mount -n -t ext3 -o noatime /dev/hda2 /etc
## /etc/mtab and /proc/mounts to be checked later!
exec /sbin/init
## one might need "$@" or something at the end of the line to pass 
## default runlevel and boot loader parameters ?

But you should consider the more advanced methods used by live cd
(knoppix and many others)

-- 
Chi usa software non libero avvelena anche te. Digli di smettere.
Informatica=arsenico: minime dosi in rari casi patologici, altrimenti letale.
Informatica=bomba: intelligente solo per gli stupidi che ci credono.


Reply to: