Subject: Moving lfs_cleanerd to /libexec
To: None <tech-userlevel@netbsd.org>
From: Julio M. Merino Vidal <jmmv84@gmail.com>
List: tech-userlevel
Date: 11/07/2006 18:43:15
------=_Part_10655_21775093.1162921395204
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

This was proposed several days ago as part of the support for LFS in
sysinst, but as it might have been hidden by the full message I'm
reposting before doing the change.  The attached patch has been
trimmed to only do the move.

Any objections to moving the lfs_cleanerd to /libexec, keeping a
symbolic link in /usr/libexec for backwards compatibility?  The binary
is small (~50kb in i386) and it solves the problem of using LFS for
the root partition (because at mount time /usr might not be
available).

Thanks,

-- 
Julio M. Merino Vidal <jmmv84@gmail.com>
The Julipedia - http://julipedia.blogspot.com/

------=_Part_10655_21775093.1162921395204
Content-Type: text/plain; name=patch.diff; charset=ANSI_X3.4-1968
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="patch.diff"

SW5kZXg6IGRpc3RyaWIvc2V0cy9saXN0cy9iYXNlL21pCj09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9j
dnNyb290L3NyYy9kaXN0cmliL3NldHMvbGlzdHMvYmFzZS9taSx2CnJldHJpZXZpbmcgcmV2aXNp
b24gMS42NjgKZGlmZiAtdSAtcCAtcjEuNjY4IG1pCi0tLSBkaXN0cmliL3NldHMvbGlzdHMvYmFz
ZS9taQk0IE5vdiAyMDA2IDAzOjQ2OjE5IC0wMDAwCTEuNjY4CisrKyBkaXN0cmliL3NldHMvbGlz
dHMvYmFzZS9taQk3IE5vdiAyMDA2IDE3OjM5OjU1IC0wMDAwCkBAIC0xMTUsNiArMTE1LDcgQEAK
IC4vbGliZGF0YS9maXJtd2FyZS9ydW0vcnVtLWxpY2Vuc2UJCWJhc2Utc3lzLXJvb3QKIC4vbGli
ZGF0YS9maXJtd2FyZS9ydW0vc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