DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Installation and Upgrading

FreeBSD Installation and Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 18th September 2008
TomAmundsen TomAmundsen is offline
Real Name: Tom Amundsen
Computional Linguist
 
Join Date: Jul 2008
Location: Los Angeles, CA
Posts: 23
Default installworld fails - because I deleted master.passwd?

Hi,

I recently upgraded my source tree using cvsup. Then I did
make buildworld
make KERNCONF=MYKERNEL kernel
(reboot)
mergemaster -p
make installworld

However, when I was running 'mergemaster -p' I think I accidentally deleted my old master.passwd. Then, when I went to do 'make installworld' it failed. Here is the output:
Code:
mkdir -p /tmp/install.OZoAkQAa
for prog in [ awk cap_mkdb cat chflags chmod chown  date echo egrep find grep install-info  ln lockf make mkdir mtree mv pwd_mkdb rm sed sh sysctl  test true uname wc zic; do  cp `which $prog` /tmp/install.OZoAkQAa;  done
cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj  MACHINE_ARCH=i386  MACHINE=i386  CPUTYPE=i386  GROFF_BIN_PATH=/usr/obj/usr/src/tmp/legacy/usr/bin  GROFF_FONT_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font  GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/tmac  PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/tmp/install.OZoAkQAa make -f Makefile.inc1 reinstall
--------------------------------------------------------------
>>> Making hierarchy
--------------------------------------------------------------
cd /usr/src; make -f Makefile.inc1 hierarchy
cd /usr/src/etc;		make distrib-dirs
mtree -eU  -f /usr/src/etc/mtree/BSD.root.dist -p /
mtree -eU  -f /usr/src/etc/mtree/BSD.var.dist -p /var
mtree -eU  -f /usr/src/etc/mtree/BSD.usr.dist -p /usr
mtree -eU  -f /usr/src/etc/mtree/BSD.include.dist  -p /usr/include
mtree -deU  -f /usr/src/etc/mtree/BIND.chroot.dist  -p /var/named
mtree -deU  -f /usr/src/etc/mtree/BSD.sendmail.dist -p /
cd /; rm -f /sys; ln -s usr/src/sys sys
cd /usr/share/man/en.ISO8859-1; ln -sf ../man* .
cd /usr/share/man;  set - `grep "^[a-zA-Z]" /usr/src/etc/man.alias`;  while [ $# -gt 0 ] ;  do  rm -rf "$1";  ln -s "$2" "$1";  shift; shift;  done
cd /usr/share/openssl/man;  set - `grep "^[a-zA-Z]" /usr/src/etc/man.alias`;  while [ $# -gt 0 ] ;  do  rm -rf "$1";  ln -s "$2" "$1";  shift; shift;  done
cd /usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* .
cd /usr/share/nls;  set - `grep "^[a-zA-Z]" /usr/src/etc/nls.alias`;  while [ $# -gt 0 ] ;  do  rm -rf "$1";  ln -s "$2" "$1";  shift; shift;  done

--------------------------------------------------------------
>>> Installing everything
--------------------------------------------------------------
cd /usr/src; make -f Makefile.inc1 install
===> share/info (install)
===> lib (install)
===> lib/csu/i386-elf (install)
install -o root -g wheel  -m 444 crt1.o crti.o crtn.o gcrt1.o /usr/lib
===> lib/libc (install)
install -C -o root -g wheel -m 444   libc.a /usr/lib
install -C -o root -g wheel -m 444   libc_p.a /usr/lib
install -s -o root -g wheel -m 444   -fschg -S  libc.so.7 /lib
ln -fs /lib/libc.so.7  /usr/lib/libc.so
ln: /usr/lib/libc.so: Operation not permitted
*** Error code 1

Stop in /usr/src/lib/libc.
*** Error code 1

Stop in /usr/src/lib.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
I redid
make buildworld
make KERNCONF=MYKERNEL kernel
(reboot)
make installworld

without doing 'mergemaster -p' and I still get exactly the same result.

Is this because I deleted master.passwd?' Is it because of something else? How can I got about trying to correct this?

P.S. - All of my applications are still working fine, besides Firefox.
Reply With Quote
  #2   (View Single Post)  
Old 18th September 2008
DNAeon DNAeon is offline
Shell Scout
 
Join Date: Sep 2008
Location: Bulgaria
Posts: 138
Default

Read from the Handbook:
http://www.freebsd.org/doc/handbook/makeworld.html

I think the right way to build the kernel is this:
Code:
# make buildkernel KERNCONF=MYKERNEL
# make installkernel KERNCONF=MYKERNEL
Read this thread too - it explains what you want to do:
http://daemonforums.org/showthread.php?t=1843

EDIT:
Quote:
Originally Posted by TomAmundsen
I redid
make buildworld
make KERNCONF=MYKERNEL kernel
(reboot)
make installworld
I missed (didn't see it the first time) the kernel word at the end of the make command - your kernel should build this way too.

What is your # sysctl kern.securelevel ? If I'm correct if you are with a securelevel 1 or higher when you are rebuilding your kernel the make install command will try to install your kernel with the schg flag.

Code:
===> lib/libc (install)
install -C -o root -g wheel -m 444   libc.a /usr/lib
install -C -o root -g wheel -m 444   libc_p.a /usr/lib
install -s -o root -g wheel -m 444   -fschg -S  libc.so.7 /lib
ln -fs /lib/libc.so.7  /usr/lib/libc.so
ln: /usr/lib/libc.so: Operation not permitted
*** Error code 1
In this case I think your libc.so.7 library is being installed with the schg flag, so try to remove it.

For further information read the man page of chflags.

Last edited by DNAeon; 18th September 2008 at 09:38 PM.
Reply With Quote
  #3   (View Single Post)  
Old 21st September 2008
TomAmundsen TomAmundsen is offline
Real Name: Tom Amundsen
Computional Linguist
 
Join Date: Jul 2008
Location: Los Angeles, CA
Posts: 23
Default

Quote:
Originally Posted by DNAeon View Post
What is your # sysctl kern.securelevel ?
It is -1

Quote:
Originally Posted by DNAeon View Post
If I'm correct if you are with a securelevel 1 or higher when you are rebuilding your kernel the make install command will try to install your kernel with the schg flag.

Code:
===> lib/libc (install)
install -C -o root -g wheel -m 444   libc.a /usr/lib
install -C -o root -g wheel -m 444   libc_p.a /usr/lib
install -s -o root -g wheel -m 444   -fschg -S  libc.so.7 /lib
ln -fs /lib/libc.so.7  /usr/lib/libc.so
ln: /usr/lib/libc.so: Operation not permitted
*** Error code 1
In this case I think your libc.so.7 library is being installed with the schg flag, so try to remove it.

For further information read the man page of chflags.
Is it still worth trying to do this even if I did make with securelevel=-1?
Reply With Quote
  #4   (View Single Post)  
Old 21st September 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 445
Default

Quote:
Originally Posted by TomAmundsen
However, when I was running 'mergemaster -p' I think I accidentally deleted my old master.passwd.
You mean you overwrote it via mergemaster? Or you manually deleted it?

Before rebuilding world, it's a good idea to first back up /etc. If you totally bork things you can just start over with a good copy of /etc and try again.

Quote:
ln -fs /lib/libc.so.7 /usr/lib/libc.so
ln: /usr/lib/libc.so: Operation not permitted
As mentioned, try removing all flags from /lib/libc.so.7. Then, from /usr/src run make cleanworld and start over from the beginning.
__________________
Kill your t.v.
Reply With Quote
  #5   (View Single Post)  
Old 22nd September 2008
TomAmundsen TomAmundsen is offline
Real Name: Tom Amundsen
Computional Linguist
 
Join Date: Jul 2008
Location: Los Angeles, CA
Posts: 23
Default

Quote:
Originally Posted by anomie View Post
You mean you overwrote it via mergemaster? Or you manually deleted it?
Sorry, I meant overwrote with mergemaster.

Quote:
Originally Posted by anomie View Post
Before rebuilding world, it's a good idea to first back up /etc. If you totally bork things you can just start over with a good copy of /etc and try again.
Yea, I figured that out too late.


Quote:
Originally Posted by anomie View Post
As mentioned, try removing all flags from /lib/libc.so.7. Then, from /usr/src run make cleanworld and start over from the beginning.
Ah, OK. Thanks!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't passwd on all accounts anymore ck2323 FreeBSD General 1 7th October 2009 03:28 AM
upgrade installworld error carpman FreeBSD Installation and Upgrading 11 8th February 2009 05:36 PM
Installation master "disk" using USB memory stick, dd? peterg22 FreeBSD Installation and Upgrading 7 14th October 2008 05:18 PM
FreeBSD 7.0 amd64 make installworld fails. KernelPanic FreeBSD Installation and Upgrading 8 11th June 2008 04:34 PM
Deleted my /boot/loader enpey FreeBSD General 16 10th June 2008 10:02 PM


All times are GMT. The time now is 10:03 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick