public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] CONFIG_PROTECT and ROOT!='/'
@ 2005-03-14 16:45 Vitaly Ivanov
  2005-03-14 21:21 ` Donnie Berkholz
  0 siblings, 1 reply; 12+ messages in thread
From: Vitaly Ivanov @ 2005-03-14 16:45 UTC (permalink / raw
  To: gentoo-dev

Hello all

"To protect or not to protect..."

emerge tool overwrite files in CONFIG_PROTECT if ROOT != '/'

for example:
   CONFIG_PROTECT="/etc /opt/gentoos/hostname/root/etc"
   ROOT="/opt/gentoos/hostname/root/"
   emerge something
overwrite files in /opt/gentoos/hostname/root/etc

I found the comments of Nicholas Jones in bug 
http://bugs.gentoo.org/show_bug.cgi?id=52415
 >> Portage makes the assumption that if you're installing
 >> into a new root, then you're building a system and
 >> shouldn't bother with config protection. It's not
 >> documented either way, so it's undefined behavior.

But if I really want to overwrite those files
I can do it by
CONFIG_PROTECT="-*"
ROOT="/opt/gentoos/hostname/root/"
emerge something

I can't chroot to /opt/gentoos/hostname/root and emerge there,
because it is cross compilation and I can't protect those files
in any way now.

May be protect *all* files in CONFIG_PROTECT
even if ROOT != '/'
This behavior can be easy override by CONFIG_PROTECT="-*"
in command line if needed.

Thanks.


-- 
Vitaly Ivanov
email: va@mail.ru
icq uin: 15918498
--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-03-16  4:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-14 16:45 [gentoo-dev] CONFIG_PROTECT and ROOT!='/' Vitaly Ivanov
2005-03-14 21:21 ` Donnie Berkholz
2005-03-15  4:24   ` Brian Jackson
2005-03-15  4:24     ` Brian Jackson
2005-03-15  6:56     ` Georgi Georgiev
2005-03-15 14:26       ` Brian Jackson
2005-03-15 16:14         ` Georgi Georgiev
2005-03-15 18:01           ` Brian Jackson
2005-03-15 23:05             ` Georgi Georgiev
2005-03-16  3:17               ` Brian Harring
2005-03-16  3:35                 ` Georgi Georgiev
2005-03-16  4:11                   ` Brian Harring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox