Re: make installworld commands used to generate manifest for makefs?

2014-09-06 Thread Boris Samorodov
06.09.2014 09:51, Kevin Oberman пишет:
 On Thu, Sep 4, 2014 at 8:36 AM, Boris Samorodov b...@passap.ru wrote:
 
 03.09.2014 21:01, Nenhum_de_Nos пишет:


 On September 3, 2014 12:02:24 PM GMT-03:00, Boris Samorodov 
 b...@passap.ru wrote:
 28.08.2014 23:02, Craig Rodrigues пишет:

 I did this:

 make -DDB_FROM_SRC -DNO_ROOT installkernel DESTDIR=/tmp/test4
 make -DDB_FROM_SRC -DNO_ROOT installworld DESTDIR=/tmp/test4
 make -DDB_FROM_SRC -DNO_ROOT distribution DESTDIR=/tmp/test4

 /tmp/test4/METALOG was created, but it did not seem to have
 /boot/kernel/kernel or
 any kernel modules.  Is that expected?

 For a new installation installworld should be done first (it creates
 the needed directory infrastructure). And then one may do
 installkernel.

 As I read from so much time ago to install first kernel, starting from
 which FreeBSD version I should change?

 It seems to be true for ages. Take a look at /usr/src/Makefile,
 section To cross-install current onto a separate partition.

 --
 WBR, Boris Samorodov (bsam)
 FreeBSD Committer, http://www.FreeBSD.org The Power To Serve

 
 Please understand that this is true when doing a cross-install where a
 system with the required directory structure to install a kernel is not yet
 present.

Sure. It was the case for the OP.

-- 
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: make installworld commands used to generate manifest for makefs?

2014-09-05 Thread Kevin Oberman
On Thu, Sep 4, 2014 at 8:36 AM, Boris Samorodov b...@passap.ru wrote:

 03.09.2014 21:01, Nenhum_de_Nos пишет:
 
 
  On September 3, 2014 12:02:24 PM GMT-03:00, Boris Samorodov 
 b...@passap.ru wrote:
  28.08.2014 23:02, Craig Rodrigues пишет:
 
  I did this:
 
  make -DDB_FROM_SRC -DNO_ROOT installkernel DESTDIR=/tmp/test4
  make -DDB_FROM_SRC -DNO_ROOT installworld DESTDIR=/tmp/test4
  make -DDB_FROM_SRC -DNO_ROOT distribution DESTDIR=/tmp/test4
 
  /tmp/test4/METALOG was created, but it did not seem to have
  /boot/kernel/kernel or
  any kernel modules.  Is that expected?
 
  For a new installation installworld should be done first (it creates
  the needed directory infrastructure). And then one may do
  installkernel.
 
  As I read from so much time ago to install first kernel, starting from
 which FreeBSD version I should change?

 It seems to be true for ages. Take a look at /usr/src/Makefile,
 section To cross-install current onto a separate partition.

 --
 WBR, Boris Samorodov (bsam)
 FreeBSD Committer, http://www.FreeBSD.org The Power To Serve


Please understand that this is true when doing a cross-install where a
system with the required directory structure to install a kernel is not yet
present. It is not true when updating a system on which is existing FreeBSD
is running. When updating a system from sources, you should always
installkernel first and then reboot to make sure you have a working kernel
before installworld blows away the tools needed to fix a kernel problem.
--
R. Kevin Oberman, Network Engineer, Retired
E-mail: rkober...@gmail.com
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: make installworld commands used to generate manifest for makefs?

2014-09-05 Thread Garrett Cooper

 On Sep 4, 2014, at 8:36, Boris Samorodov b...@passap.ru wrote:
 
 03.09.2014 21:01, Nenhum_de_Nos пишет:
 
 
 On September 3, 2014 12:02:24 PM GMT-03:00, Boris Samorodov 
 b...@passap.ru wrote:
 28.08.2014 23:02, Craig Rodrigues пишет:
 
 I did this:
 
 make -DDB_FROM_SRC -DNO_ROOT installkernel DESTDIR=/tmp/test4
 make -DDB_FROM_SRC -DNO_ROOT installworld DESTDIR=/tmp/test4
 make -DDB_FROM_SRC -DNO_ROOT distribution DESTDIR=/tmp/test4
 
 /tmp/test4/METALOG was created, but it did not seem to have
 /boot/kernel/kernel or
 any kernel modules.  Is that expected?
 
 For a new installation installworld should be done first (it creates
 the needed directory infrastructure). And then one may do
 installkernel.
 
 As I read from so much time ago to install first kernel, starting from which 
 FreeBSD version I should change?
 
 It seems to be true for ages. Take a look at /usr/src/Makefile,
 section To cross-install current onto a separate partition.

If you mkdir DESTDIR first, then run the canonical build steps, that would work 
as well :).
Cheers!
-Garrett
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: make installworld commands used to generate manifest for makefs?

2014-09-04 Thread Boris Samorodov
03.09.2014 21:01, Nenhum_de_Nos пишет:
 
 
 On September 3, 2014 12:02:24 PM GMT-03:00, Boris Samorodov b...@passap.ru 
 wrote:
 28.08.2014 23:02, Craig Rodrigues пишет:

 I did this:

 make -DDB_FROM_SRC -DNO_ROOT installkernel DESTDIR=/tmp/test4
 make -DDB_FROM_SRC -DNO_ROOT installworld DESTDIR=/tmp/test4
 make -DDB_FROM_SRC -DNO_ROOT distribution DESTDIR=/tmp/test4

 /tmp/test4/METALOG was created, but it did not seem to have
 /boot/kernel/kernel or
 any kernel modules.  Is that expected?

 For a new installation installworld should be done first (it creates
 the needed directory infrastructure). And then one may do
 installkernel.
 
 As I read from so much time ago to install first kernel, starting from which 
 FreeBSD version I should change? 

It seems to be true for ages. Take a look at /usr/src/Makefile,
section To cross-install current onto a separate partition.

-- 
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: make installworld commands used to generate manifest for makefs?

2014-09-03 Thread Boris Samorodov
28.08.2014 23:02, Craig Rodrigues пишет:

 I did this:
 
 make -DDB_FROM_SRC -DNO_ROOT installkernel DESTDIR=/tmp/test4
 make -DDB_FROM_SRC -DNO_ROOT installworld DESTDIR=/tmp/test4
 make -DDB_FROM_SRC -DNO_ROOT distribution DESTDIR=/tmp/test4
 
 /tmp/test4/METALOG was created, but it did not seem to have
 /boot/kernel/kernel or
 any kernel modules.  Is that expected?

For a new installation installworld should be done first (it creates
the needed directory infrastructure). And then one may do
installkernel.

-- 
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: make installworld commands used to generate manifest for makefs?

2014-09-03 Thread Nenhum_de_Nos


On September 3, 2014 12:02:24 PM GMT-03:00, Boris Samorodov b...@passap.ru 
wrote:
28.08.2014 23:02, Craig Rodrigues пишет:

 I did this:
 
 make -DDB_FROM_SRC -DNO_ROOT installkernel DESTDIR=/tmp/test4
 make -DDB_FROM_SRC -DNO_ROOT installworld DESTDIR=/tmp/test4
 make -DDB_FROM_SRC -DNO_ROOT distribution DESTDIR=/tmp/test4
 
 /tmp/test4/METALOG was created, but it did not seem to have
 /boot/kernel/kernel or
 any kernel modules.  Is that expected?

For a new installation installworld should be done first (it creates
the needed directory infrastructure). And then one may do
installkernel.

As I read from so much time ago to install first kernel, starting from which 
FreeBSD version I should change? 

Thanks, 

-- 
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to
freebsd-current-unsubscr...@freebsd.org

-- 
We will call you Cygnus,
the God of balance you shall be.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: make installworld commands used to generate manifest for makefs?

2014-08-28 Thread Craig Rodrigues
On Mon, Aug 25, 2014 at 9:55 AM, Brooks Davis bro...@freebsd.org wrote:
 On Sun, Aug 24, 2014 at 04:10:21PM -0700, Craig Rodrigues wrote:
 Hi,

 Is there an easy way to take most of the commands performed
 during make installworld and create a manifest file
 which is compatible with makefs?

 make -DNO_ROOT -DDB_FROM_SRC DESTDIR=foo installworld

 should result in a foo/METALOG file suitable for passing to makefs.
 You may also want the distribution target if you want a populated /etc.

 -- Broks

Thanks, that's useful info!
I did this:

make -DDB_FROM_SRC -DNO_ROOT installkernel DESTDIR=/tmp/test4
make -DDB_FROM_SRC -DNO_ROOT installworld DESTDIR=/tmp/test4
make -DDB_FROM_SRC -DNO_ROOT distribution DESTDIR=/tmp/test4

/tmp/test4/METALOG was created, but it did not seem to have
/boot/kernel/kernel or
any kernel modules.  Is that expected?

--
Craig
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: make installworld commands used to generate manifest for makefs?

2014-08-25 Thread Brooks Davis
On Sun, Aug 24, 2014 at 04:10:21PM -0700, Craig Rodrigues wrote:
 Hi,
 
 Is there an easy way to take most of the commands performed
 during make installworld and create a manifest file
 which is compatible with makefs?

make -DNO_ROOT -DDB_FROM_SRC DESTDIR=foo installworld

should result in a foo/METALOG file suitable for passing to makefs.
You may also want the distribution target if you want a populated /etc.

-- Broks


pgptPGNp8VyD0.pgp
Description: PGP signature


Re: make installworld commands used to generate manifest for makefs?

2014-08-25 Thread Craig Rodrigues
On Mon, Aug 25, 2014 at 9:55 AM, Brooks Davis bro...@freebsd.org wrote:
 On Sun, Aug 24, 2014 at 04:10:21PM -0700, Craig Rodrigues wrote:
 Hi,

 Is there an easy way to take most of the commands performed
 during make installworld and create a manifest file
 which is compatible with makefs?

 make -DNO_ROOT -DDB_FROM_SRC DESTDIR=foo installworld

 should result in a foo/METALOG file suitable for passing to makefs.
 You may also want the distribution target if you want a populated /etc.

 -- Broks

Hi,

I got this:


# make -DNO_ROOT -DDB_FROM_SRC DESTDIR=/tmp installworld
mkdir -p /tmp/install.hEJfJDhM
progs=$(for prog in [ awk cap_mkdb cat chflags chmod chown  date echo
egrep find grep id install   ln lockf make mkdir mtree mv pwd_mkdb  rm
sed services_mkdb sh sysctl test true uname wc zic tzsetup  ; do  if
progpath=`which $prog`; then  echo $progpath;  else  echo Required
tool $prog not found in PATH. 2;  exit 1;  fi;  done);  libs=$(ldd
-f %o %p\n -f %o %p\n $progs 2/dev/null | sort -u |  while read
line; do  set -- $line;  if [ $2 $3 != not found ]; then  echo $2;
 else  echo Required library $1 not found. 2;  exit 1;  fi;
done);  cp $libs $progs /tmp/install.hEJfJDhM
cp -R ${PATH_LOCALE:-/usr/share/locale} /tmp/install.hEJfJDhM/locale
echo #mtree 2.0  /tmp//METALOG
cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=amd64
MACHINE=amd64 CPUTYPE=
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/legacy/bin:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/tmp/install.hEJfJDhM
 LD_LIBRARY_PATH=/tmp/install.hEJfJDhM
PATH_LOCALE=/tmp/install.hEJfJDhM/locale make -DWITH_ATF -f
Makefile.inc1  INSTALL=install -N /usr/src/etc -U -M /tmp//METALOG -D
/tmp MTREE_CMD=mtree -N /usr/src/etc -W
__MAKE_SHELL=/tmp/install.hEJfJDhM/sh -DNO_ROOT METALOG=/tmp//METALOG
reinstall;  MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=amd64 MACHINE=amd64
CPUTYPE= 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/legacy/bin:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/tmp/install.hEJfJDhM
 LD_LIBRARY_PATH=/tmp/install.hEJfJDhM
PATH_LOCALE=/tmp/install.hEJfJDhM/locale rm -rf /tmp/install.hEJfJDhM
make[2]: /usr/src/share/mk/bsd.compiler.mk line 37: Unable to
determine compiler type for cc.  Consider setting COMPILER_TYPE.
*** Error code 1

Stop.
make[1]: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in /usr/src
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: make installworld commands used to generate manifest for makefs?

2014-08-25 Thread Brooks Davis
On Mon, Aug 25, 2014 at 10:38:12AM -0700, Craig Rodrigues wrote:
 On Mon, Aug 25, 2014 at 9:55 AM, Brooks Davis bro...@freebsd.org wrote:
  On Sun, Aug 24, 2014 at 04:10:21PM -0700, Craig Rodrigues wrote:
  Hi,
 
  Is there an easy way to take most of the commands performed
  during make installworld and create a manifest file
  which is compatible with makefs?
 
  make -DNO_ROOT -DDB_FROM_SRC DESTDIR=foo installworld
 
  should result in a foo/METALOG file suitable for passing to makefs.
  You may also want the distribution target if you want a populated /etc.
 
  -- Broks
 
 Hi,
 
 I got this:
 
 
 # make -DNO_ROOT -DDB_FROM_SRC DESTDIR=/tmp installworld

you really don't want DESTDIR=/tmp, it will install a full OS in that
directory along with the METALOG file.

 mkdir -p /tmp/install.hEJfJDhM
 progs=$(for prog in [ awk cap_mkdb cat chflags chmod chown  date echo
 egrep find grep id install   ln lockf make mkdir mtree mv pwd_mkdb  rm
 sed services_mkdb sh sysctl test true uname wc zic tzsetup  ; do  if
 progpath=`which $prog`; then  echo $progpath;  else  echo Required
 tool $prog not found in PATH. 2;  exit 1;  fi;  done);  libs=$(ldd
 -f %o %p\n -f %o %p\n $progs 2/dev/null | sort -u |  while read
 line; do  set -- $line;  if [ $2 $3 != not found ]; then  echo $2;
  else  echo Required library $1 not found. 2;  exit 1;  fi;
 done);  cp $libs $progs /tmp/install.hEJfJDhM
 cp -R ${PATH_LOCALE:-/usr/share/locale} /tmp/install.hEJfJDhM/locale
 echo #mtree 2.0  /tmp//METALOG
 cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=amd64
 MACHINE=amd64 CPUTYPE=
 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/legacy/bin:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/tmp/install.hEJfJDhM
  LD_LIBRARY_PATH=/tmp/install.hEJfJDhM
 PATH_LOCALE=/tmp/install.hEJfJDhM/locale make -DWITH_ATF -f
 Makefile.inc1  INSTALL=install -N /usr/src/etc -U -M /tmp//METALOG -D
 /tmp MTREE_CMD=mtree -N /usr/src/etc -W
 __MAKE_SHELL=/tmp/install.hEJfJDhM/sh -DNO_ROOT METALOG=/tmp//METALOG
 reinstall;  MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=amd64 MACHINE=amd64
 CPUTYPE= 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/legacy/bin:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/tmp/install.hEJfJDhM
  LD_LIBRARY_PATH=/tmp/install.hEJfJDhM
 PATH_LOCALE=/tmp/install.hEJfJDhM/locale rm -rf /tmp/install.hEJfJDhM
 make[2]: /usr/src/share/mk/bsd.compiler.mk line 37: Unable to
 determine compiler type for cc.  Consider setting COMPILER_TYPE.

You need to build world before you can install it.

-- Brooks


pgpMgj7DkgPit.pgp
Description: PGP signature


Re: make installworld commands used to generate manifest for makefs?

2014-08-25 Thread Julian Elischer

On 8/25/14, 12:36 PM, Brooks Davis wrote:

On Mon, Aug 25, 2014 at 10:38:12AM -0700, Craig Rodrigues wrote:

On Mon, Aug 25, 2014 at 9:55 AM, Brooks Davis bro...@freebsd.org wrote:

On Sun, Aug 24, 2014 at 04:10:21PM -0700, Craig Rodrigues wrote:

Hi,

Is there an easy way to take most of the commands performed
during make installworld and create a manifest file
which is compatible with makefs?

make -DNO_ROOT -DDB_FROM_SRC DESTDIR=foo installworld


if you haven't already this should be documented in the base makefiles 
along with the other -D

values.


should result in a foo/METALOG file suitable for passing to makefs.
You may also want the distribution target if you want a populated /etc.

-- Broks

Hi,

I got this:


# make -DNO_ROOT -DDB_FROM_SRC DESTDIR=/tmp installworld

you really don't want DESTDIR=/tmp, it will install a full OS in that
directory along with the METALOG file.


mkdir -p /tmp/install.hEJfJDhM
progs=$(for prog in [ awk cap_mkdb cat chflags chmod chown  date echo
egrep find grep id install   ln lockf make mkdir mtree mv pwd_mkdb  rm
sed services_mkdb sh sysctl test true uname wc zic tzsetup  ; do  if
progpath=`which $prog`; then  echo $progpath;  else  echo Required
tool $prog not found in PATH. 2;  exit 1;  fi;  done);  libs=$(ldd
-f %o %p\n -f %o %p\n $progs 2/dev/null | sort -u |  while read
line; do  set -- $line;  if [ $2 $3 != not found ]; then  echo $2;
  else  echo Required library $1 not found. 2;  exit 1;  fi;
done);  cp $libs $progs /tmp/install.hEJfJDhM
cp -R ${PATH_LOCALE:-/usr/share/locale} /tmp/install.hEJfJDhM/locale
echo #mtree 2.0  /tmp//METALOG
cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=amd64
MACHINE=amd64 CPUTYPE=
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/legacy/bin:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/tmp/install.hEJfJDhM
  LD_LIBRARY_PATH=/tmp/install.hEJfJDhM
PATH_LOCALE=/tmp/install.hEJfJDhM/locale make -DWITH_ATF -f
Makefile.inc1  INSTALL=install -N /usr/src/etc -U -M /tmp//METALOG -D
/tmp MTREE_CMD=mtree -N /usr/src/etc -W
__MAKE_SHELL=/tmp/install.hEJfJDhM/sh -DNO_ROOT METALOG=/tmp//METALOG
reinstall;  MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=amd64 MACHINE=amd64
CPUTYPE= 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/legacy/bin:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/tmp/install.hEJfJDhM
  LD_LIBRARY_PATH=/tmp/install.hEJfJDhM
PATH_LOCALE=/tmp/install.hEJfJDhM/locale rm -rf /tmp/install.hEJfJDhM
make[2]: /usr/src/share/mk/bsd.compiler.mk line 37: Unable to
determine compiler type for cc.  Consider setting COMPILER_TYPE.

You need to build world before you can install it.

-- Brooks


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: make installworld commands used to generate manifest for makefs?

2014-08-25 Thread Brooks Davis
On Mon, Aug 25, 2014 at 03:28:43PM -0700, Julian Elischer wrote:
 On 8/25/14, 12:36 PM, Brooks Davis wrote:
  On Mon, Aug 25, 2014 at 10:38:12AM -0700, Craig Rodrigues wrote:
  On Mon, Aug 25, 2014 at 9:55 AM, Brooks Davis bro...@freebsd.org wrote:
  On Sun, Aug 24, 2014 at 04:10:21PM -0700, Craig Rodrigues wrote:
  Hi,
 
  Is there an easy way to take most of the commands performed
  during make installworld and create a manifest file
  which is compatible with makefs?
  make -DNO_ROOT -DDB_FROM_SRC DESTDIR=foo installworld
 
 if you haven't already this should be documented in the base makefiles 
 along with the other -D
 values.

It was documented in the initial commit.

-- Brooks

 
  should result in a foo/METALOG file suitable for passing to makefs.
  You may also want the distribution target if you want a populated /etc.
 
  -- Broks
  Hi,
 
  I got this:
 
 
  # make -DNO_ROOT -DDB_FROM_SRC DESTDIR=/tmp installworld
  you really don't want DESTDIR=/tmp, it will install a full OS in that
  directory along with the METALOG file.
 
  mkdir -p /tmp/install.hEJfJDhM
  progs=$(for prog in [ awk cap_mkdb cat chflags chmod chown  date echo
  egrep find grep id install   ln lockf make mkdir mtree mv pwd_mkdb  rm
  sed services_mkdb sh sysctl test true uname wc zic tzsetup  ; do  if
  progpath=`which $prog`; then  echo $progpath;  else  echo Required
  tool $prog not found in PATH. 2;  exit 1;  fi;  done);  libs=$(ldd
  -f %o %p\n -f %o %p\n $progs 2/dev/null | sort -u |  while read
  line; do  set -- $line;  if [ $2 $3 != not found ]; then  echo $2;
else  echo Required library $1 not found. 2;  exit 1;  fi;
  done);  cp $libs $progs /tmp/install.hEJfJDhM
  cp -R ${PATH_LOCALE:-/usr/share/locale} /tmp/install.hEJfJDhM/locale
  echo #mtree 2.0  /tmp//METALOG
  cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=amd64
  MACHINE=amd64 CPUTYPE=
  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/legacy/bin:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/tmp/install.hEJfJDhM
LD_LIBRARY_PATH=/tmp/install.hEJfJDhM
  PATH_LOCALE=/tmp/install.hEJfJDhM/locale make -DWITH_ATF -f
  Makefile.inc1  INSTALL=install -N /usr/src/etc -U -M /tmp//METALOG -D
  /tmp MTREE_CMD=mtree -N /usr/src/etc -W
  __MAKE_SHELL=/tmp/install.hEJfJDhM/sh -DNO_ROOT METALOG=/tmp//METALOG
  reinstall;  MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=amd64 MACHINE=amd64
  CPUTYPE= 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/legacy/bin:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/tmp/install.hEJfJDhM
LD_LIBRARY_PATH=/tmp/install.hEJfJDhM
  PATH_LOCALE=/tmp/install.hEJfJDhM/locale rm -rf /tmp/install.hEJfJDhM
  make[2]: /usr/src/share/mk/bsd.compiler.mk line 37: Unable to
  determine compiler type for cc.  Consider setting COMPILER_TYPE.
  You need to build world before you can install it.
 
  -- Brooks
 


pgprsdqPiaURf.pgp
Description: PGP signature