hns - 日記自動生成システム - Version 2.19.9

先月 2023年09月 来月
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2023年09月11日(月) 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [NetBSD] chroot and pbulk

download:

images directory under:
-rw-r--r--  1 makoto  wheel   884887151 Sep 10 15:07 NetBSD-10.99.8-amd64-bios-install.img.gz

USB memory or usb Hard disk:

zcat 884887151 Sep 10 15:07 NetBSD-10.99.8-amd64-bios-install.img.gz | \
sudo dd of= /dev/rsd0d bs=2m

sysinst:

copy binaries to /usr/INSTALL:

rsync -avH /mnt/amd64/ to /export/CHROOT-10.99.8/usr/INSTALL/

unpack under CHROOT:

h97@makoto 00:09:47/230911(/export/CHROOT-10.99.8)% \
foreach i (`cd /export/CHROOT-10.99.8/usr/INSTALL/binary/sets; ls *.xz|grep -v kern` )
echo $i; sudo pax -r -z -pe -f /export/CHROOT-10.99.8/usr/INSTALL/binary/sets/$i;
end
base.tar.xz
comp.tar.xz
debug.tar.xz
etc.tar.xz
games.tar.xz
gpufw.tar.xz
man.tar.xz
misc.tar.xz
modules.tar.xz
rescue.tar.xz
tests.tar.xz
text.tar.xz
xbase.tar.xz
xcomp.tar.xz
xdebug.tar.xz
xetc.tar.xz
xfont.tar.xz
xserver.tar.xz
h97@makoto 00:11:23/230911(/export/CHROOT-10.99.8)% 

adjustment on CHROOT:

  •  sudo chroot /export/CHROOT-10.99.8/
     cd /dev
     ./MAKEDEV all
     exit
    
  • /etc/resolv.conf
     cd /export/CHROOT-10.99.8/
     % sudo cp -p /etc/resolv.conf etc
    
  • pbulk account
  • pkgsrc
    /etc/fstab
    /export/pkgsrc  /export/CHROOT-10.99.8/usr/pkgsrc null  rw 
    tmpfs           /export/CHROOT-10.99.8/WRKOBJDIR        tmpfs rw
    
    mkdir /export/CHROOT-10.99.8/usr/pkgsrc
    mkdir /export/CHROOT-10.99.8/WRKOBJDIR
    
    mount -a

bootstrap:

set -E
cd /usr/pkgsrc/bootstrap
./bootstrap --prefix=/usr/pkg_bulk --pkgdbdir=/usr/pkg_bulk/.pkgdbdir

===> bootstrap started: Sun Sep 10 15:29:06 UTC 2023
===> bootstrap ended:   Sun Sep 10 15:31:00 UTC 2023

pbulk:

/usr/pkg_bulk/etc/mk.conf
PACKAGES=               /packages_bulk
SKIP_LICENSE_CHECK=      yes
cd /usr/pkgsrc/pkgtools/pbulk ; 
env PATH=/usr/pkg_bulk/bin:/usr/pkg_bulk/sbin:${PATH} bmake package-install

addendum:

# cd ../../local-mef/pbulk-*
# pwd
/usr/pkgsrc/local-mef/pbulk-addendum
# env PATH=/usr/pkg_bulk/bin:/usr/pkg_bulk/sbin:${PATH} bmake package-install
env PATH=/usr/pkg_bulk/bin:/usr/pkg_bulk/sbin:${PATH} pkg_info -u

setup pbulk.conf:

--- usr/pkg_bulk/etc/pbulk.conf.orig	2023-09-11 07:09:32.872762710 +0900
+++ usr/pkg_bulk/etc/pbulk.conf	2023-09-11 07:53:02.871242484 +0900
@@ -17,7 +17,7 @@
 # On a single-processor, non-distributed build, you may want to say "no"
 # here.
 #
-master_mode=yes
+master_mode=no
 
 master_ip=192.168.75.10
 scan_clients="192.168.75.21 192.168.75.22 192.168.75.23 192.168.75.24"
@@ -29,20 +29,20 @@
 # Some flags for the programs that publish the binary packages and the
 # build report. If you want to disable the publishing at all, see below.
 #
-pkg_rsync_args="-av --delete-excluded -e ssh"
-pkg_rsync_target="pkgsrc@192.168.75.1:/public/packages/current/DragonFly-1.8"
-report_rsync_args="-avz --delete-excluded -e ssh"
-report_rsync_target="pkgsrc@192.168.75.1:/public/reports/current/DragonFly-1.8"
-report_subject_prefix="pkgsrc"
-report_recipients="pkgsrc-bulk@netbsd.org"
+pkg_rsync_args="-av --delete-excluded"
+pkg_rsync_target="/bulk/rsync"
+report_rsync_args="-avz --delete-excluded"
+report_rsync_target="/bulk/report"
+report_subject_prefix="10.99.8"
+report_recipients="makoto@if.t.u-tokyo.ac.jp"
 
 # An archive containing the pkgsrc binary tree after bootstrapping.
 #
-bootstrapkit=/usr/pkgsrc/bootstrap/bootstrap.tar.gz
+bootstrapkit=
 
 # Optionally build a subset of the available packages and their dependencies.
 # The file is a newline separated list of package locations (e.g. lang/perl5).
-#limited_list=/limited_list
+limited_list=/limited-list
 
 # Optionally ignore unresolvable dependencies for a full build (e.g.
 # a build without limited_list set).  Default behavior is to bail out.
@@ -96,7 +96,7 @@
 gzip="/usr/bin/gzip -nf -9"
 # On non-NetBSD, this should usually point at the bmake in ${prefix}, not the
 # make used to build pbulk itself.
-make=${prefix}/bin/bmake
+make=/usr/bin/make
 mail=/usr/bin/mail
 neato=/usr/pkg_bulk/bin/neato
 rsync=/usr/pkg_bulk/bin/rsync

/limited-list:

pkgtools/digest
local-mef/config-set
local-mef/config-server-min
local-mef/config-office
the first trial should be done only with the first line sub pbulk
env  LANG=C   PATH=/usr/pkg_bulk/bin:/usr/pkg_bulk/sbin:${PATH} bulkbuild


















最近の日記
2025年01月15日
今更 advent calendar
2025年01月12日
金柑収穫
2025年01月07日
sh: 1: not found
sh: 1: not found
2025年01月02日
geography/R-s2
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)