Well, the subject says it all .. we(gentoo) have no editor in the / mount point if /usr is not present.. (like my case) while booting a 2.5.x kernel, i was unable to mount /opt, /usr, /home, /var/tmp, etc..etc.etc... since they were all in LVM. and this also happened once when for no apparent reason my boot sequence got messed up and everything aborted, can also happen to anyone with network file systems and end up with a network disruption/breakage(in such cases normally / is the only "local" mount point)... In such cases the need for a text editor is urged.. normally correcting the situation might depend on it... So..i think we(gentoo) should have a minimal editor in / in case that something goes wrong, some editor like e3, nano, vi(or any clone), joe, I dunno, something that can edit files and preferably small.. I vote for e3 since is minimal and has several key bindings. I also would like to point out that building one and copying to / can work, but this is no REAL SOLUTION to this... i see this has PROBLEM/BUG.. since any system should have a interactive text editor in /. I think i'm not the only guy how thinks this.. ;) Miguel Sousa Filipe
Az, I'm thinking just build nano (our standard editor which our docs currently describe) into /bin -- possibly even statically. If you agree, re-assign to me and I'll fix if you like. I've been following the thread on -dev Matt
nano .. grrr :P Should be fine, it links only to glibc and ncurses, which is both in /lib, so just move it if you ask me. Just put a pkg_postinst() which rm any file in /usr/bin, and maybe add a compat symlink there, else the nano from build image will not be over written.
Created attachment 5982 [details] e3-2.33 ebuild which installs e3 in / mount point I believe it's as simples has this..
I was wrong.. sorry.. the ebuild doesn't work.. I gotta see how "dobin" works.. because I'm not being able to put the binary in /bin .. just /usr/bin.. so.. my last ebuild is worthless. sorry! :-\ Miguel
Created attachment 5983 [details] e3 ebuild for instalation of binaries in / mount point installs: -rwxr-xr-x 1 root root 12772 Nov 27 01:53 /bin/e3 lrwxrwxrwx 1 root root 2 Nov 27 01:53 /bin/e3em -> e3 (emacs) lrwxrwxrwx 1 root root 2 Nov 27 01:53 /bin/e3ne -> e3 (nedit) lrwxrwxrwx 1 root root 2 Nov 27 01:53 /bin/e3pi -> e3 (pico) lrwxrwxrwx 1 root root 2 Nov 27 01:53 /bin/e3vi -> e3 (vi) lrwxrwxrwx 1 root root 2 Nov 27 01:53 /bin/e3ws -> e3 (wordstar)
Miguel, I fixed this by placing nano in /bin. e3 is great, but its x86 only (e3 is actually written in assembler iirc). Matt
The update is now breaking packages. If heard of scant user complaints, but I've just personally experienced it with fcron: checking sendmail... /usr/sbin/sendmail checking for sh... /bin/sh checking editor... configure: error: File /usr/bin/nano is not an executable file !!! ERROR: sys-apps/fcron-2.0.0-r2 failed. !!! Function src_compile, Line 10, Exitcode 1 !!! bad ./configure What's odd is that I have my $EDITOR var pointed to /usr/bin/vim, leaving nano in the dust, bust the fcron config script is still looking for "/usr/bin/nano". It actually just occured to me to logout/login and force a full env update just to be sure, but this may pop up other places. Perhaps symlink /bin/nano -> /usr/bin/nano ?
*nano-1.0.9-r2 (01 Dec 2002) 01 Dec 2002; Mike Frysinger <vapier@gentoo.org> : Added a symlink for /usr/bin/nano to /bin/nano #10916
Just a confirmation. I've completed the `emerge -u world`, gone through a complete etc-update, rebooted to be sure and I still can't build fcron. I created the symlink by hand and fcron emerges fine. I'm sure the -r2 build will take care of any "/usr/bin/nano" issues.