NetBSD-Bugs archive

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

Re: install/56132: build.sh target install-image fails in update-mode



The following reply was made to PR install/56132; it has been noted by GNATS.

From: Paul Goyette <paul%whooppee.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: install-manager%netbsd.org@localhost, tsutsui%netbsd.org@localhost
Subject: Re: install/56132: build.sh target install-image fails in update-mode
Date: Tue, 27 Apr 2021 20:59:16 -0700 (PDT)

 On Tue, 27 Apr 2021, Izumi Tsutsui wrote:
 
 > Could you show output of 'ls -l' in your $OBJDIR of
 > src/distrib/amd64/uefi-installimage?
 
 There is no uefi-installimage (only install-image)...
 
 Here's what we get when building with too-small size...
 
 $ rm -rf /build/netbsd-local/obj/amd64/distrib/amd64/installimage/
 $ ./build.sh	-T /build/netbsd-local/tools/x86_64/amd64 \
  		-D /build/netbsd-local/dest/amd64 \
  		-O /build/netbsd-local/obj/amd64 \
  		-R /build/netbsd-local/release \
  		-V RELEASEMACHINEDIR=amd64 -V MKDEBUG=yes \
  		-V MKKDEBUG=yes -V MKDEBUGLIB=yes \
  		-V KERNEL_DIR=no -V MKPAM=no \
  	-U -x -N2 -m amd64 -j1 -V INSTIMAGEMB=1600 install-image
 ...
 Creating rootfs...
 chmod +r work/var/spool/ftp/hidden
 /build/netbsd-local/tools/x86_64/amd64/bin/nbmakefs -M 1541406720 -m 1541406720                  -B 1234                                         -F work.spec -N work/etc                                                                                -o bsize=16384,fsize=2048,density=8192                                          work.rootfs work
 nbmakefs: `work' size of 1611087872 is larger than the maxsize of 1541406720.
 ...
 ERROR: Failed to make install-image
 *** BUILD ABORTED ***
 $ ls -l /build/netbsd-local/src/distrib/amd64/total 36
 drwxrwxr-x  2 paul  staff  512 Apr 27 16:16 CVS
 -rw-r--r--  1 paul  staff  485 May 27  2020 Makefile
 drwxrwxr-x  6 paul  staff  512 Mar  6 20:04 cdroms
 drwxrwxr-x  4 paul  staff  512 Apr 27 20:45 installimage
 drwxrwxr-x  3 paul  staff  512 Jan 28  2019 instkernel
 drwxrwxr-x  3 paul  staff  512 Jan 28  2019 kmod
 drwxrwxr-x  3 paul  staff  512 Jan 28  2019 kmod-cgdroot
 drwxrwxr-x  4 paul  staff  512 Apr 27 16:16 liveimage
 drwxrwxr-x  7 paul  staff  512 Feb 22  2020 ramdisks
 $ ls -l /build/netbsd-local/src/distrib/amd64/installimage/
 total 2444
 drwxrwxr-x   2 paul  staff         512 Apr 27 16:12 CVS
 -rw-r--r--   1 paul  staff        1340 Apr 26 07:08 Makefile
 -rw-rw-r--   1 paul  staff         337 Apr 27 20:45 boot.cfg
 -rw-r--r--   1 paul  staff         347 Apr 24  2019 boot.cfg.in
 -rw-r--r--   1 paul  staff        2225 Feb 26  2020 etc.rc
 -rw-r--r--   1 paul  staff         208 Jan 28  2019 etc.ttys
 -rw-r--r--   1 paul  staff        3082 Jan 28  2019 install.sh
 -rw-r--r--   1 paul  staff         684 Jan 28  2019 spec.inst
 drwxr-xr-x  18 paul  staff         512 Apr 27 20:45 work
 -rw-rw-r--   1 paul  staff          87 Apr 27 20:45 work.fstab
 -rw-rw-r--   1 paul  staff  1677721600 Apr 27 20:45 work.mbr
 -rw-rw-r--   1 paul  staff     1048576 Apr 27 20:45 work.mbr.truncated
 -rw-rw-r--   1 paul  staff         545 Apr 27 20:45 work.rc.conf
 -rw-rw-r--   1 paul  staff     1188141 Apr 27 20:45 work.spec
 $
 
 And here is where we retry with a big-enough value for INSTIMAGEMB
 (_and_ adding -u to the build.sh command line)...
 
 $ ./build.sh	-T /build/netbsd-local/tools/x86_64/amd64 \
  		-D /build/netbsd-local/dest/amd64 \
  		-O /build/netbsd-local/obj/amd64 \
  		-R /build/netbsd-local/release \
  		-V RELEASEMACHINEDIR=amd64 -V MKDEBUG=yes \
  		-V MKKDEBUG=yes -V MKDEBUGLIB=yes \
  		-V KERNEL_DIR=no -V MKPAM=no \
  	-U -x -N2 -m amd64 -j1 -u -V INSTIMAGEMB=1700 install-image
 ...
 Creating rootfs...
 chmod +r work/var/spool/ftp/hidden
 /build/netbsd-local/tools/x86_64/amd64/bin/nbmakefs -M 1646264320 -m 1646264320                  -B 1234                                         -F work.spec -N work/etc                                                                                -o bsize=16384,fsize=2048,density=8192                                          work.rootfs work
 Calculated size of `work.rootfs': 1646264320 bytes, 10504 inodes
 Extent size set to 16384
 work.rootfs: 1570.0MB (3215360 sectors) block size 16384, fragment size 2048
          using 9 cylinder groups of 183.86MB, 11767 blks, 23552 inodes.
 super-block backups (for fsck -b #) at:
        32,  376576,  753120, 1129664, 1506208, 1882752, 2259296, 2635840, 3012384,
 Populating `work.rootfs'
 ...
 create GPT image...
 dd if=work.mbr of=work.gpt skip=$((3481600 - 2048))  count=2048
 0+0 records in
 0+0 records out
 0 bytes transferred in 0.001 secs (0 bytes/sec)
 cat  work.mbr.truncated work.efi imgroot.fs work.gpt > work.img
 /build/netbsd-local/tools/x86_64/amd64/bin/nbgpt  work.img biosboot -i 2                 -c /build/netbsd-local/src/distrib/amd64/installimage/work/usr/mdec/gptmbr.bin
 nbgpt: work.img: No secondary GPT header; run recover
 *** Failed target:  NetBSD-9.99.82-amd64-install.img
 *** Failed command: /build/netbsd-local/tools/x86_64/amd64/bin/nbgpt work.img biosboot -i 2 -c /build/netbsd-local/src/distrib/amd64/installimage/work/usr/mdec/gptmbr.bin
 *** Error code 1
 ...
 ERROR: Failed to make install-image
 *** BUILD ABORTED ***
 $ ls -l /build/netbsd-local/src/distrib/amd64/installimage/
 total 3353136
 drwxrwxr-x   2 paul  staff         512 Apr 27 16:12 CVS
 -rw-r--r--   1 paul  staff        1340 Apr 26 07:08 Makefile
 -rw-rw-r--   1 paul  staff         337 Apr 27 20:52 boot.cfg
 -rw-r--r--   1 paul  staff         347 Apr 24  2019 boot.cfg.in
 -rw-r--r--   1 paul  staff        2225 Feb 26  2020 etc.rc
 -rw-r--r--   1 paul  staff         208 Jan 28  2019 etc.ttys
 -rw-rw-r--   1 paul  staff  1646264320 Apr 27 20:52 imgroot.fs
 -rw-r--r--   1 paul  staff        3082 Jan 28  2019 install.sh
 -rw-r--r--   1 paul  staff         684 Jan 28  2019 spec.inst
 drwxr-xr-x  18 paul  staff         512 Apr 27 20:52 work
 -rw-r--r--   1 paul  staff   134217728 Apr 27 20:52 work.efi
 drwxrwxr-x   3 paul  staff         512 Apr 27 20:52 work.efidir
 -rw-rw-r--   1 paul  staff          87 Apr 27 20:45 work.fstab
 -rw-rw-r--   1 paul  staff           0 Apr 27 20:52 work.gpt
 -rw-rw-r--   1 paul  staff  1781530624 Apr 27 20:52 work.img
 -rw-rw-r--   1 paul  staff  1677721600 Apr 27 20:45 work.mbr
 -rw-rw-r--   1 paul  staff     1048576 Apr 27 20:45 work.mbr.truncated
 -rw-rw-r--   1 paul  staff         545 Apr 27 20:52 work.rc.conf
 -rw-rw-r--   1 paul  staff     1188141 Apr 27 20:52 work.spec
 $ ls -l /build/netbsd-local/src/distrib/amd64/installimage/work/
 total 25248
 -r--r--r--   2 paul  staff      1186 Apr 27 18:02 .cshrc
 -r--r--r--   2 paul  staff       702 Apr 27 18:02 .profile
 drwxr-xr-x   2 paul  staff       512 Apr 27 16:41 altroot
 drwxr-xr-x   4 paul  staff       512 Apr 27 18:11 amd64
 drwxr-xr-x   2 paul  staff      1024 Apr 27 18:01 bin
 -r--r--r--   1 paul  staff     85208 Apr 27 20:52 boot
 -rw-r--r--   1 paul  staff       337 Apr 27 20:52 boot.cfg
 drwxr-xr-x   5 paul  staff       512 Apr 27 20:52 dev
 drwxrwxr-x  30 paul  staff      2048 Apr 27 20:52 etc
 -rw-r--r--   1 paul  staff      3082 Apr 27 20:52 install.sh
 drwxr-xr-x   4 paul  staff      2560 Apr 27 18:02 lib
 drwxr-xr-x   3 paul  staff       512 Apr 27 16:41 libdata
 drwxr-xr-x   5 paul  staff       512 Apr 27 18:02 libexec
 drwxr-xr-x   2 paul  staff       512 Apr 27 16:41 mnt
 -rwxr-xr-x   1 paul  staff  29081816 Apr 27 18:10 netbsd
 drwxr-xr-x   2 paul  staff       512 Apr 27 18:02 rescue
 drwxr-xr-x   2 paul  staff       512 Apr 27 20:52 root
 drwxr-xr-x   2 paul  staff      3072 Apr 27 18:02 sbin
 drwxrwxr-x   3 paul  staff       512 Apr 27 18:01 stand
 -rw-r--r--   1 paul  staff    447888 Apr 27 20:52 sysinst
 -rw-r--r--   1 paul  staff     38714 Apr 27 20:52 sysinstmsgs.de
 -rw-r--r--   1 paul  staff     37488 Apr 27 20:52 sysinstmsgs.es
 -rw-r--r--   1 paul  staff     38285 Apr 27 20:52 sysinstmsgs.fr
 -rw-r--r--   1 paul  staff     34327 Apr 27 20:52 sysinstmsgs.pl
 drwxrwxr-x   2 paul  staff       512 Apr 27 16:41 tmp
 drwxr-xr-x  11 paul  staff       512 Apr 27 16:41 usr
 drwxr-xr-x  24 paul  staff       512 Apr 27 16:41 var
 $
 
 
 
 
 +--------------------+--------------------------+-----------------------+
 | Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:     |
 | (Retired)          | FA29 0E3B 35AF E8AE 6651 | paul%whooppee.com@localhost     |
 | Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette%netbsd.org@localhost   |
 +--------------------+--------------------------+-----------------------+
 


Home | Main Index | Thread Index | Old Index