linprocfs and linux_base port upgrade
Boris Samorodov
bsam at ipt.ru
Tue Feb 21 04:54:02 PST 2006
Hi!
Assume that one has a linux_base port installed and linprocfs is
mounted. The task is to upgrade the linux_base port. We do:
- Un-mounting linprocfs;
- deletting /compat/linux (along /compat/linux/proc);
- ...
The problem: a short period of time (well, it may be not so short
accoring to various curcumstances) exists when there _is no_
/compat/linux/proc directory and linprocfs _is_ defined at
/etc/fstab. If something goes wrong when upgrading (system panic, port
upgrading errors, etc) one can get an unbootable machine.
I think that a linux_base port should:
- comment the linprocfs definition right after removing
/compat/linux/proc directory;
- remove the comment after creating the needed directory.
The comment itself should be a readable and unique one (ie all
linux_base ports should use the same text). Ex.:
"#*linux_base autocomment*".
Do you have some other ideas?
Thanks.
--
Boris B. Samorodov, Research Engineer
InPharmTech Co, http://www.ipt.ru
Telephone & Internet Service Provider
More information about the freebsd-emulation
mailing list