Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Unable to login after upgrade



On Tue, 28 Oct 2008, Quentin Garnier wrote:

On Tue, Oct 28, 2008 at 10:54:17AM +0100, Claus Andersen wrote:
[...]
This is (naturally) most likely self inflicted when I did the etcupdate:

How did you update your base system?  It sounds like you improperly
installed an unprivileged build.

The system is expendable so I can start over - I was just hoping to avoid it. I have some decent notes of what I did if you don't mind pointing out where I failed:

$ su
# mkdir /usr/src
# chown clan /usr/src
# mkdir /usr/obj
# chown clan /usr/obj
# mkdir /usr/tools
# chown clan /usr/tools
# exit
$ echo CVS_RSH="ssh" >> ~/.profile
$ echo export CVS_RSH >> ~/.profile
$ echo CVSROOT="anoncvs%anoncvs.NetBSD.org@localhost:/cvsroot" >> ~/.profile
$ echo export CVSROOT >> ~/.profile
$ echo update -dPA >> ~/.cvsrc
$ echo rdiff  -u >> ~/.cvsrc
$ echo diff -u >> ~/.cvsrc
$ echo cvs -q >> ~/.cvsrc
relogin
$ cd /usr
$ cvs checkout -A -P src
$ cd /usr/src
$ ./build.sh  -O ../obj -T ../tools -U -u distribution
$ ./build.sh -O ../obj -T ../tools kernel=GENERIC
$ cd ../obj/sys/arch/i386/compile/GENERIC
$ su
# mv /netbsd /netbsd.old
# cp netbsd /netbsd
# shutdown -r now
 ...
$ cd /usr/src
$ su
#  ./build.sh -O ../obj -T ../tools -U install=/
# /usr/sbin/etcupdate -s /usr/src
# shutdown -r now

--
Rgds,
Claus


Home | Main Index | Thread Index | Old Index