Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jul 2007 12:34:19 +0200
From:      Thomas Backman <serenity@exscape.org>
To:        Gaspar Chilingarov <casper@web.am>
Cc:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: RFT: bin/106642: [patch] Allow excluding certain files	from	mergemaster (8)
Message-ID:  <4C8E02EE-1026-4B2A-90D1-B9227816AA2B@exscape.org>
In-Reply-To: <4694AAF1.6050302@web.am>
References:  <20070419133550.GA65054@tirith.brixandersen.dk>	<20070419200929.GA70735@tirith.brixandersen.dk>	<4693BC3E.1050605@web.am>	<200707110115.42139.pieter@degoeje.nl> <469417CB.7010705@FreeBSD.org> <4694AAF1.6050302@web.am>

next in thread | previous in thread | raw e-mail | index | archive | help

On Jul 11, 2007, at 12:03 PM, Gaspar Chilingarov wrote:

> In other hand running rm /etc/rc.d/* before mergermaster's start  
> can render system unusable, if mergemaster will fail for some reason.
>
> -- 
> Gaspar Chilingarov
What about the opposite, i.e. removing etc/rc.d/* from the temproot?  
It might be a horrible solution, but it should work, no?

...
make installworld
mkdir /var/tmp/root
cd /usr/src/etc
make DESTDIR=/var/tmp/root distrib-dirs distribution
cd /var/tmp/root
find -d . -type d | xargs rmdir 2>/dev/null
rm -rf /var/tmp/root/etc/rc.d
mergemaster

Obviously, tell mergemaster to use the current temproot. Again, this  
might be a horrible solution, I don't know. ;)

/Thomas



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C8E02EE-1026-4B2A-90D1-B9227816AA2B>