History log of /openbsd-current/distrib/amd64/ramdisk_cd/Makefile
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.39 15-Dec-2023 jmatthew

For amd64 cdXX.iso and installXX.iso, create an EFI system partition image
containing the EFI boot loaders and install it as an El Torito boot image,
making the install CDs bootable in EFI mode.

"looks great" deraadt@
ok mlarkin@


Revision tags: OPENBSD_7_4_BASE
# 1.38 28-Apr-2023 krw

Retire -E's "expert" mode. Introduced 23 years ago to avoid
confusing users with FFS attributes that only experts should
fiddle with. Actual use has withered away with functionality
rendered moot or moved elsewhere.

'-e' remains for the truly obscure corner cases.

Simply excise the code for now to see if hidden users/uses are
exposed. Further simplifications are possible if no such
users/uses surface.

ok with sthen@ millert@ kn@ otto@


# 1.37 24-Apr-2023 krw

Replace the only two uses of disklabel template files with 'echo "/ *"'.

No functional change.

ok kn@


Revision tags: OPENBSD_7_3_BASE
# 1.36 10-Mar-2023 krw

Remove unused make variables FSTYPE (=install360) and FSDISKTYPE
(=mini34). Preparatory to removing some obsolete/unused disktab
entries.


Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.35 07-Mar-2022 deraadt

grow diskspace


# 1.34 13-Nov-2021 kn

Use long filenames by default on FAT filesystems

These days, 8.3 filenames are often a problem, filesystems containing
firmware with long names must not truncate them -- it's also a sane default
as portable file system between OSes, anyway.

Altough undocumented in mount_msdos(8), the default for FAT32 already is to
use long filenames: ever since its import from NetBSD in 1998.

Previously, mount_msdos would ignore long filenames and default to short
filenames unless a flag was used or long ones were found on the filesystem
prior to mounting it.

Just always mount with support for long filenames (unless `-s' is used).


As various install media use FAT filesystems, adjust the remaining ones to
also pass explicit mount option reflecting the previous default.

OK deraadt


# 1.33 11-Nov-2021 kn

Make "config -e" work with ramdisk kernels

amd64, alpha, i386 and macppc strip *all* symbols off the ramdisk bsd.rd
(before compressing it) and thus break config(8)'s modification feature:

$ gzcat bsd.rd > bsd.rd.raw
$ config -e bsd.rd.raw
...
config: failed to get first cfdata

This is different from "boot> boot /bsd.rd -c" which sucessfully drops into
UKC on all platforms regardless of stripping.

Having needed "config -e" this on arm64 made me look into this for all
platforms. Other platforms work because they don't strip these symbols.

Tweak objcopy(1)'s stripping on amd64 and macppc to unbreak permanent
modifications. I have no alpha or i386 to test, so these remain broken.

macppc works without cranking media size.
amd64 was cranked to the smallest possible size.

OK deraadt


# 1.32 07-Nov-2021 deraadt

increase ramdisk space for another driver


Revision tags: OPENBSD_7_0_BASE
# 1.31 26-Jul-2021 kn

Pass make flags to kernel and lib builds

Running `make -j4' in /usr/src/distrib/amd64/ramdisk_cd/ et al. executes
make(1) to both build the RAMDISK kernel and build libraries.

Doing so does not propagate the flags specified to the ramdisk_cd
invocation, which in turn means `-j4' for example is ignored and both kernel
and libraries will not be built in parallel.

Pass make(1)'s MFLAGS along to retain relevant flags; make is clever enough
to separate flags, variable assignments and targets from each other and only
pass along things to `MFLAGS' that'd make sense, i.e. `make -C. -j4 foo=bar'
does *not* pass `-C.' to change directories.
(can be easily tested with `make -p ... | grep MFLAGS'.)

This makes hacking on ramdisks/the installer much faster, espescially since
the `bsd' target does `make clean' and therefore builds a new kernel every
time.

OK deraadt


Revision tags: OPENBSD_6_9_BASE
# 1.30 14-Feb-2021 semarie

distrib: restore rdsetroot -x usage (extract the disk.fs image) on stripped bsd.rd

It passes options to keep rd_root_size and rd_root_image symbols while
stripping. These symbols are the ones used by rdsetroot to insert or
extract disk image into RAMDISK.

ok danj@ deraadt@


# 1.29 14-Feb-2021 semarie

distrib: use ${MACHINE} instead of hardcoded value

ok deraadt@


# 1.28 13-Feb-2021 semarie

distrib: remove .comment section systematically

remove this section as part of crunchgen generated commands.
it avoids calling "strip -R .comment" for some but not all architectures.

ok deraadt@ danj@


# 1.27 13-Feb-2021 semarie

distrib: remove .SUNW_ctf only on kernels

the .SUNW_ctf section is added by ctfstrip(1), which is only used for kernels.

ok deraadt@ danj@


# 1.26 13-Feb-2021 semarie

distrib: merge "cp a b; strip b" to "objcopy -S a b"

ok deraadt@ danj@


# 1.25 13-Feb-2021 semarie

distrib: remove duplicate strip(1) calls

"strip -R section" command run "strip" (without option) as well.
there is no need to call both.

(binaries checked with sha1)

original diff from danj@

ok deraadt@


# 1.24 05-Jan-2021 deraadt

distribute the gzip'd version of bsd.rd on platforms where we all boot
methods support it. if anyone finds a method which does not work, please
speak up.


Revision tags: OPENBSD_6_8_BASE
# 1.23 15-Sep-2020 deraadt

grow amd64 ramdisk_cd.......


# 1.22 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.21 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.20 07-Jun-2019 deraadt

eliminate differences between all the list files as much as
possible, and remove the failed previous attempts at sharing
in ./miniroot and ./ramdisk. maybe now that differences are
eliminated we can start a new sharing effort? i dunno..


# 1.19 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.18 01-May-2019 deraadt

verbose mkhybrid was never needed on these arch


# 1.17 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.16 30-Apr-2019 deraadt

repair more trivial differences


# 1.15 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.14 30-Apr-2019 deraadt

pull cdfs into ramdisk_cd


# 1.13 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.12 08-Jul-2017 florian

Increase size to make slaacd fit.
Size problem noted by me, correct fix from deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.11 30-Dec-2016 deraadt

Install cert.pem + ftp(1) binary that supports SSL, so the install script
can perform https fetches. While non-critical for sets (which are verified
using signify), it is an uplift for communication towards the ftp.openbsd.org
cgi which provides mirror proposals, entropy seeds, and current time.
[The install script changes are not included in this commit]
ok beck jsing rpe


# 1.10 19-Oct-2016 natano

Inline IMAGE, CBIN, CRUNCHCONF and XNAME.
ok deraadt


# 1.9 19-Oct-2016 deraadt

Unshare Makefile.inc so we can determine how to squeeze makefs
into the picture.
ok natano


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.8 06-Sep-2015 kettenis

Use the new fdisk -b functionality to put an EFI system partition on the
minirootXX.fs image and put the new UEFI bootloader on there.

Stop relying on /etc/disktab for the partition layout. Instead use a suitable
template and let disklabel(8) allocate all remaining free space to the 'a'
partition.

ok deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.7 16-Jul-2014 okan

zap trailing newlines; "go for it" deraadt


Revision tags: OPENBSD_5_5_BASE
# 1.6 02-Mar-2014 deraadt

create small i386 and amd64 miniroots. These can be dd'd to a usb stick
or such, and easily booted.
Work by chris, integration mechanism by me


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.5 18-Oct-2010 deraadt

Place a smaller spwd.db onto the install media. Be consistant with the naming
of the "additional" list files (for architectures which split the list)
Then... cleanup some TZ which it is clear should not have been placed onto
certain media which don't have the space for them.


Revision tags: OPENBSD_4_8_BASE
# 1.4 06-Apr-2010 deraadt

double size of amd64 boot media
tested by krw


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.3 09-Aug-2007 deraadt

do not install the cdromXX.fs file, it is useless


# 1.2 19-May-2007 millert

Make FLOPPYSIZE be in terms of 512 byte blocks like all the other ports.
This was something I missed in the initial "newfs -c" conversion.


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.1 07-Feb-2004 deraadt

first cut; most written by mickey, couple tunings by me


# 1.38 28-Apr-2023 krw

Retire -E's "expert" mode. Introduced 23 years ago to avoid
confusing users with FFS attributes that only experts should
fiddle with. Actual use has withered away with functionality
rendered moot or moved elsewhere.

'-e' remains for the truly obscure corner cases.

Simply excise the code for now to see if hidden users/uses are
exposed. Further simplifications are possible if no such
users/uses surface.

ok with sthen@ millert@ kn@ otto@


# 1.37 24-Apr-2023 krw

Replace the only two uses of disklabel template files with 'echo "/ *"'.

No functional change.

ok kn@


Revision tags: OPENBSD_7_3_BASE
# 1.36 10-Mar-2023 krw

Remove unused make variables FSTYPE (=install360) and FSDISKTYPE
(=mini34). Preparatory to removing some obsolete/unused disktab
entries.


Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.35 07-Mar-2022 deraadt

grow diskspace


# 1.34 13-Nov-2021 kn

Use long filenames by default on FAT filesystems

These days, 8.3 filenames are often a problem, filesystems containing
firmware with long names must not truncate them -- it's also a sane default
as portable file system between OSes, anyway.

Altough undocumented in mount_msdos(8), the default for FAT32 already is to
use long filenames: ever since its import from NetBSD in 1998.

Previously, mount_msdos would ignore long filenames and default to short
filenames unless a flag was used or long ones were found on the filesystem
prior to mounting it.

Just always mount with support for long filenames (unless `-s' is used).


As various install media use FAT filesystems, adjust the remaining ones to
also pass explicit mount option reflecting the previous default.

OK deraadt


# 1.33 11-Nov-2021 kn

Make "config -e" work with ramdisk kernels

amd64, alpha, i386 and macppc strip *all* symbols off the ramdisk bsd.rd
(before compressing it) and thus break config(8)'s modification feature:

$ gzcat bsd.rd > bsd.rd.raw
$ config -e bsd.rd.raw
...
config: failed to get first cfdata

This is different from "boot> boot /bsd.rd -c" which sucessfully drops into
UKC on all platforms regardless of stripping.

Having needed "config -e" this on arm64 made me look into this for all
platforms. Other platforms work because they don't strip these symbols.

Tweak objcopy(1)'s stripping on amd64 and macppc to unbreak permanent
modifications. I have no alpha or i386 to test, so these remain broken.

macppc works without cranking media size.
amd64 was cranked to the smallest possible size.

OK deraadt


# 1.32 07-Nov-2021 deraadt

increase ramdisk space for another driver


Revision tags: OPENBSD_7_0_BASE
# 1.31 26-Jul-2021 kn

Pass make flags to kernel and lib builds

Running `make -j4' in /usr/src/distrib/amd64/ramdisk_cd/ et al. executes
make(1) to both build the RAMDISK kernel and build libraries.

Doing so does not propagate the flags specified to the ramdisk_cd
invocation, which in turn means `-j4' for example is ignored and both kernel
and libraries will not be built in parallel.

Pass make(1)'s MFLAGS along to retain relevant flags; make is clever enough
to separate flags, variable assignments and targets from each other and only
pass along things to `MFLAGS' that'd make sense, i.e. `make -C. -j4 foo=bar'
does *not* pass `-C.' to change directories.
(can be easily tested with `make -p ... | grep MFLAGS'.)

This makes hacking on ramdisks/the installer much faster, espescially since
the `bsd' target does `make clean' and therefore builds a new kernel every
time.

OK deraadt


Revision tags: OPENBSD_6_9_BASE
# 1.30 14-Feb-2021 semarie

distrib: restore rdsetroot -x usage (extract the disk.fs image) on stripped bsd.rd

It passes options to keep rd_root_size and rd_root_image symbols while
stripping. These symbols are the ones used by rdsetroot to insert or
extract disk image into RAMDISK.

ok danj@ deraadt@


# 1.29 14-Feb-2021 semarie

distrib: use ${MACHINE} instead of hardcoded value

ok deraadt@


# 1.28 13-Feb-2021 semarie

distrib: remove .comment section systematically

remove this section as part of crunchgen generated commands.
it avoids calling "strip -R .comment" for some but not all architectures.

ok deraadt@ danj@


# 1.27 13-Feb-2021 semarie

distrib: remove .SUNW_ctf only on kernels

the .SUNW_ctf section is added by ctfstrip(1), which is only used for kernels.

ok deraadt@ danj@


# 1.26 13-Feb-2021 semarie

distrib: merge "cp a b; strip b" to "objcopy -S a b"

ok deraadt@ danj@


# 1.25 13-Feb-2021 semarie

distrib: remove duplicate strip(1) calls

"strip -R section" command run "strip" (without option) as well.
there is no need to call both.

(binaries checked with sha1)

original diff from danj@

ok deraadt@


# 1.24 05-Jan-2021 deraadt

distribute the gzip'd version of bsd.rd on platforms where we all boot
methods support it. if anyone finds a method which does not work, please
speak up.


Revision tags: OPENBSD_6_8_BASE
# 1.23 15-Sep-2020 deraadt

grow amd64 ramdisk_cd.......


# 1.22 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.21 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.20 07-Jun-2019 deraadt

eliminate differences between all the list files as much as
possible, and remove the failed previous attempts at sharing
in ./miniroot and ./ramdisk. maybe now that differences are
eliminated we can start a new sharing effort? i dunno..


# 1.19 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.18 01-May-2019 deraadt

verbose mkhybrid was never needed on these arch


# 1.17 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.16 30-Apr-2019 deraadt

repair more trivial differences


# 1.15 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.14 30-Apr-2019 deraadt

pull cdfs into ramdisk_cd


# 1.13 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.12 08-Jul-2017 florian

Increase size to make slaacd fit.
Size problem noted by me, correct fix from deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.11 30-Dec-2016 deraadt

Install cert.pem + ftp(1) binary that supports SSL, so the install script
can perform https fetches. While non-critical for sets (which are verified
using signify), it is an uplift for communication towards the ftp.openbsd.org
cgi which provides mirror proposals, entropy seeds, and current time.
[The install script changes are not included in this commit]
ok beck jsing rpe


# 1.10 19-Oct-2016 natano

Inline IMAGE, CBIN, CRUNCHCONF and XNAME.
ok deraadt


# 1.9 19-Oct-2016 deraadt

Unshare Makefile.inc so we can determine how to squeeze makefs
into the picture.
ok natano


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.8 06-Sep-2015 kettenis

Use the new fdisk -b functionality to put an EFI system partition on the
minirootXX.fs image and put the new UEFI bootloader on there.

Stop relying on /etc/disktab for the partition layout. Instead use a suitable
template and let disklabel(8) allocate all remaining free space to the 'a'
partition.

ok deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.7 16-Jul-2014 okan

zap trailing newlines; "go for it" deraadt


Revision tags: OPENBSD_5_5_BASE
# 1.6 02-Mar-2014 deraadt

create small i386 and amd64 miniroots. These can be dd'd to a usb stick
or such, and easily booted.
Work by chris, integration mechanism by me


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.5 18-Oct-2010 deraadt

Place a smaller spwd.db onto the install media. Be consistant with the naming
of the "additional" list files (for architectures which split the list)
Then... cleanup some TZ which it is clear should not have been placed onto
certain media which don't have the space for them.


Revision tags: OPENBSD_4_8_BASE
# 1.4 06-Apr-2010 deraadt

double size of amd64 boot media
tested by krw


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.3 09-Aug-2007 deraadt

do not install the cdromXX.fs file, it is useless


# 1.2 19-May-2007 millert

Make FLOPPYSIZE be in terms of 512 byte blocks like all the other ports.
This was something I missed in the initial "newfs -c" conversion.


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.1 07-Feb-2004 deraadt

first cut; most written by mickey, couple tunings by me


# 1.37 24-Apr-2023 krw

Replace the only two uses of disklabel template files with 'echo "/ *"'.

No functional change.

ok kn@


Revision tags: OPENBSD_7_3_BASE
# 1.36 10-Mar-2023 krw

Remove unused make variables FSTYPE (=install360) and FSDISKTYPE
(=mini34). Preparatory to removing some obsolete/unused disktab
entries.


Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.35 07-Mar-2022 deraadt

grow diskspace


# 1.34 13-Nov-2021 kn

Use long filenames by default on FAT filesystems

These days, 8.3 filenames are often a problem, filesystems containing
firmware with long names must not truncate them -- it's also a sane default
as portable file system between OSes, anyway.

Altough undocumented in mount_msdos(8), the default for FAT32 already is to
use long filenames: ever since its import from NetBSD in 1998.

Previously, mount_msdos would ignore long filenames and default to short
filenames unless a flag was used or long ones were found on the filesystem
prior to mounting it.

Just always mount with support for long filenames (unless `-s' is used).


As various install media use FAT filesystems, adjust the remaining ones to
also pass explicit mount option reflecting the previous default.

OK deraadt


# 1.33 11-Nov-2021 kn

Make "config -e" work with ramdisk kernels

amd64, alpha, i386 and macppc strip *all* symbols off the ramdisk bsd.rd
(before compressing it) and thus break config(8)'s modification feature:

$ gzcat bsd.rd > bsd.rd.raw
$ config -e bsd.rd.raw
...
config: failed to get first cfdata

This is different from "boot> boot /bsd.rd -c" which sucessfully drops into
UKC on all platforms regardless of stripping.

Having needed "config -e" this on arm64 made me look into this for all
platforms. Other platforms work because they don't strip these symbols.

Tweak objcopy(1)'s stripping on amd64 and macppc to unbreak permanent
modifications. I have no alpha or i386 to test, so these remain broken.

macppc works without cranking media size.
amd64 was cranked to the smallest possible size.

OK deraadt


# 1.32 07-Nov-2021 deraadt

increase ramdisk space for another driver


Revision tags: OPENBSD_7_0_BASE
# 1.31 26-Jul-2021 kn

Pass make flags to kernel and lib builds

Running `make -j4' in /usr/src/distrib/amd64/ramdisk_cd/ et al. executes
make(1) to both build the RAMDISK kernel and build libraries.

Doing so does not propagate the flags specified to the ramdisk_cd
invocation, which in turn means `-j4' for example is ignored and both kernel
and libraries will not be built in parallel.

Pass make(1)'s MFLAGS along to retain relevant flags; make is clever enough
to separate flags, variable assignments and targets from each other and only
pass along things to `MFLAGS' that'd make sense, i.e. `make -C. -j4 foo=bar'
does *not* pass `-C.' to change directories.
(can be easily tested with `make -p ... | grep MFLAGS'.)

This makes hacking on ramdisks/the installer much faster, espescially since
the `bsd' target does `make clean' and therefore builds a new kernel every
time.

OK deraadt


Revision tags: OPENBSD_6_9_BASE
# 1.30 14-Feb-2021 semarie

distrib: restore rdsetroot -x usage (extract the disk.fs image) on stripped bsd.rd

It passes options to keep rd_root_size and rd_root_image symbols while
stripping. These symbols are the ones used by rdsetroot to insert or
extract disk image into RAMDISK.

ok danj@ deraadt@


# 1.29 14-Feb-2021 semarie

distrib: use ${MACHINE} instead of hardcoded value

ok deraadt@


# 1.28 13-Feb-2021 semarie

distrib: remove .comment section systematically

remove this section as part of crunchgen generated commands.
it avoids calling "strip -R .comment" for some but not all architectures.

ok deraadt@ danj@


# 1.27 13-Feb-2021 semarie

distrib: remove .SUNW_ctf only on kernels

the .SUNW_ctf section is added by ctfstrip(1), which is only used for kernels.

ok deraadt@ danj@


# 1.26 13-Feb-2021 semarie

distrib: merge "cp a b; strip b" to "objcopy -S a b"

ok deraadt@ danj@


# 1.25 13-Feb-2021 semarie

distrib: remove duplicate strip(1) calls

"strip -R section" command run "strip" (without option) as well.
there is no need to call both.

(binaries checked with sha1)

original diff from danj@

ok deraadt@


# 1.24 05-Jan-2021 deraadt

distribute the gzip'd version of bsd.rd on platforms where we all boot
methods support it. if anyone finds a method which does not work, please
speak up.


Revision tags: OPENBSD_6_8_BASE
# 1.23 15-Sep-2020 deraadt

grow amd64 ramdisk_cd.......


# 1.22 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.21 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.20 07-Jun-2019 deraadt

eliminate differences between all the list files as much as
possible, and remove the failed previous attempts at sharing
in ./miniroot and ./ramdisk. maybe now that differences are
eliminated we can start a new sharing effort? i dunno..


# 1.19 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.18 01-May-2019 deraadt

verbose mkhybrid was never needed on these arch


# 1.17 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.16 30-Apr-2019 deraadt

repair more trivial differences


# 1.15 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.14 30-Apr-2019 deraadt

pull cdfs into ramdisk_cd


# 1.13 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.12 08-Jul-2017 florian

Increase size to make slaacd fit.
Size problem noted by me, correct fix from deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.11 30-Dec-2016 deraadt

Install cert.pem + ftp(1) binary that supports SSL, so the install script
can perform https fetches. While non-critical for sets (which are verified
using signify), it is an uplift for communication towards the ftp.openbsd.org
cgi which provides mirror proposals, entropy seeds, and current time.
[The install script changes are not included in this commit]
ok beck jsing rpe


# 1.10 19-Oct-2016 natano

Inline IMAGE, CBIN, CRUNCHCONF and XNAME.
ok deraadt


# 1.9 19-Oct-2016 deraadt

Unshare Makefile.inc so we can determine how to squeeze makefs
into the picture.
ok natano


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.8 06-Sep-2015 kettenis

Use the new fdisk -b functionality to put an EFI system partition on the
minirootXX.fs image and put the new UEFI bootloader on there.

Stop relying on /etc/disktab for the partition layout. Instead use a suitable
template and let disklabel(8) allocate all remaining free space to the 'a'
partition.

ok deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.7 16-Jul-2014 okan

zap trailing newlines; "go for it" deraadt


Revision tags: OPENBSD_5_5_BASE
# 1.6 02-Mar-2014 deraadt

create small i386 and amd64 miniroots. These can be dd'd to a usb stick
or such, and easily booted.
Work by chris, integration mechanism by me


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.5 18-Oct-2010 deraadt

Place a smaller spwd.db onto the install media. Be consistant with the naming
of the "additional" list files (for architectures which split the list)
Then... cleanup some TZ which it is clear should not have been placed onto
certain media which don't have the space for them.


Revision tags: OPENBSD_4_8_BASE
# 1.4 06-Apr-2010 deraadt

double size of amd64 boot media
tested by krw


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.3 09-Aug-2007 deraadt

do not install the cdromXX.fs file, it is useless


# 1.2 19-May-2007 millert

Make FLOPPYSIZE be in terms of 512 byte blocks like all the other ports.
This was something I missed in the initial "newfs -c" conversion.


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.1 07-Feb-2004 deraadt

first cut; most written by mickey, couple tunings by me


# 1.36 10-Mar-2023 krw

Remove unused make variables FSTYPE (=install360) and FSDISKTYPE
(=mini34). Preparatory to removing some obsolete/unused disktab
entries.


Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.35 07-Mar-2022 deraadt

grow diskspace


# 1.34 13-Nov-2021 kn

Use long filenames by default on FAT filesystems

These days, 8.3 filenames are often a problem, filesystems containing
firmware with long names must not truncate them -- it's also a sane default
as portable file system between OSes, anyway.

Altough undocumented in mount_msdos(8), the default for FAT32 already is to
use long filenames: ever since its import from NetBSD in 1998.

Previously, mount_msdos would ignore long filenames and default to short
filenames unless a flag was used or long ones were found on the filesystem
prior to mounting it.

Just always mount with support for long filenames (unless `-s' is used).


As various install media use FAT filesystems, adjust the remaining ones to
also pass explicit mount option reflecting the previous default.

OK deraadt


# 1.33 11-Nov-2021 kn

Make "config -e" work with ramdisk kernels

amd64, alpha, i386 and macppc strip *all* symbols off the ramdisk bsd.rd
(before compressing it) and thus break config(8)'s modification feature:

$ gzcat bsd.rd > bsd.rd.raw
$ config -e bsd.rd.raw
...
config: failed to get first cfdata

This is different from "boot> boot /bsd.rd -c" which sucessfully drops into
UKC on all platforms regardless of stripping.

Having needed "config -e" this on arm64 made me look into this for all
platforms. Other platforms work because they don't strip these symbols.

Tweak objcopy(1)'s stripping on amd64 and macppc to unbreak permanent
modifications. I have no alpha or i386 to test, so these remain broken.

macppc works without cranking media size.
amd64 was cranked to the smallest possible size.

OK deraadt


# 1.32 07-Nov-2021 deraadt

increase ramdisk space for another driver


Revision tags: OPENBSD_7_0_BASE
# 1.31 26-Jul-2021 kn

Pass make flags to kernel and lib builds

Running `make -j4' in /usr/src/distrib/amd64/ramdisk_cd/ et al. executes
make(1) to both build the RAMDISK kernel and build libraries.

Doing so does not propagate the flags specified to the ramdisk_cd
invocation, which in turn means `-j4' for example is ignored and both kernel
and libraries will not be built in parallel.

Pass make(1)'s MFLAGS along to retain relevant flags; make is clever enough
to separate flags, variable assignments and targets from each other and only
pass along things to `MFLAGS' that'd make sense, i.e. `make -C. -j4 foo=bar'
does *not* pass `-C.' to change directories.
(can be easily tested with `make -p ... | grep MFLAGS'.)

This makes hacking on ramdisks/the installer much faster, espescially since
the `bsd' target does `make clean' and therefore builds a new kernel every
time.

OK deraadt


Revision tags: OPENBSD_6_9_BASE
# 1.30 14-Feb-2021 semarie

distrib: restore rdsetroot -x usage (extract the disk.fs image) on stripped bsd.rd

It passes options to keep rd_root_size and rd_root_image symbols while
stripping. These symbols are the ones used by rdsetroot to insert or
extract disk image into RAMDISK.

ok danj@ deraadt@


# 1.29 14-Feb-2021 semarie

distrib: use ${MACHINE} instead of hardcoded value

ok deraadt@


# 1.28 13-Feb-2021 semarie

distrib: remove .comment section systematically

remove this section as part of crunchgen generated commands.
it avoids calling "strip -R .comment" for some but not all architectures.

ok deraadt@ danj@


# 1.27 13-Feb-2021 semarie

distrib: remove .SUNW_ctf only on kernels

the .SUNW_ctf section is added by ctfstrip(1), which is only used for kernels.

ok deraadt@ danj@


# 1.26 13-Feb-2021 semarie

distrib: merge "cp a b; strip b" to "objcopy -S a b"

ok deraadt@ danj@


# 1.25 13-Feb-2021 semarie

distrib: remove duplicate strip(1) calls

"strip -R section" command run "strip" (without option) as well.
there is no need to call both.

(binaries checked with sha1)

original diff from danj@

ok deraadt@


# 1.24 05-Jan-2021 deraadt

distribute the gzip'd version of bsd.rd on platforms where we all boot
methods support it. if anyone finds a method which does not work, please
speak up.


Revision tags: OPENBSD_6_8_BASE
# 1.23 15-Sep-2020 deraadt

grow amd64 ramdisk_cd.......


# 1.22 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.21 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.20 07-Jun-2019 deraadt

eliminate differences between all the list files as much as
possible, and remove the failed previous attempts at sharing
in ./miniroot and ./ramdisk. maybe now that differences are
eliminated we can start a new sharing effort? i dunno..


# 1.19 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.18 01-May-2019 deraadt

verbose mkhybrid was never needed on these arch


# 1.17 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.16 30-Apr-2019 deraadt

repair more trivial differences


# 1.15 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.14 30-Apr-2019 deraadt

pull cdfs into ramdisk_cd


# 1.13 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.12 08-Jul-2017 florian

Increase size to make slaacd fit.
Size problem noted by me, correct fix from deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.11 30-Dec-2016 deraadt

Install cert.pem + ftp(1) binary that supports SSL, so the install script
can perform https fetches. While non-critical for sets (which are verified
using signify), it is an uplift for communication towards the ftp.openbsd.org
cgi which provides mirror proposals, entropy seeds, and current time.
[The install script changes are not included in this commit]
ok beck jsing rpe


# 1.10 19-Oct-2016 natano

Inline IMAGE, CBIN, CRUNCHCONF and XNAME.
ok deraadt


# 1.9 19-Oct-2016 deraadt

Unshare Makefile.inc so we can determine how to squeeze makefs
into the picture.
ok natano


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.8 06-Sep-2015 kettenis

Use the new fdisk -b functionality to put an EFI system partition on the
minirootXX.fs image and put the new UEFI bootloader on there.

Stop relying on /etc/disktab for the partition layout. Instead use a suitable
template and let disklabel(8) allocate all remaining free space to the 'a'
partition.

ok deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.7 16-Jul-2014 okan

zap trailing newlines; "go for it" deraadt


Revision tags: OPENBSD_5_5_BASE
# 1.6 02-Mar-2014 deraadt

create small i386 and amd64 miniroots. These can be dd'd to a usb stick
or such, and easily booted.
Work by chris, integration mechanism by me


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.5 18-Oct-2010 deraadt

Place a smaller spwd.db onto the install media. Be consistant with the naming
of the "additional" list files (for architectures which split the list)
Then... cleanup some TZ which it is clear should not have been placed onto
certain media which don't have the space for them.


Revision tags: OPENBSD_4_8_BASE
# 1.4 06-Apr-2010 deraadt

double size of amd64 boot media
tested by krw


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.3 09-Aug-2007 deraadt

do not install the cdromXX.fs file, it is useless


# 1.2 19-May-2007 millert

Make FLOPPYSIZE be in terms of 512 byte blocks like all the other ports.
This was something I missed in the initial "newfs -c" conversion.


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.1 07-Feb-2004 deraadt

first cut; most written by mickey, couple tunings by me


# 1.35 07-Mar-2022 deraadt

grow diskspace


# 1.34 13-Nov-2021 kn

Use long filenames by default on FAT filesystems

These days, 8.3 filenames are often a problem, filesystems containing
firmware with long names must not truncate them -- it's also a sane default
as portable file system between OSes, anyway.

Altough undocumented in mount_msdos(8), the default for FAT32 already is to
use long filenames: ever since its import from NetBSD in 1998.

Previously, mount_msdos would ignore long filenames and default to short
filenames unless a flag was used or long ones were found on the filesystem
prior to mounting it.

Just always mount with support for long filenames (unless `-s' is used).


As various install media use FAT filesystems, adjust the remaining ones to
also pass explicit mount option reflecting the previous default.

OK deraadt


# 1.33 11-Nov-2021 kn

Make "config -e" work with ramdisk kernels

amd64, alpha, i386 and macppc strip *all* symbols off the ramdisk bsd.rd
(before compressing it) and thus break config(8)'s modification feature:

$ gzcat bsd.rd > bsd.rd.raw
$ config -e bsd.rd.raw
...
config: failed to get first cfdata

This is different from "boot> boot /bsd.rd -c" which sucessfully drops into
UKC on all platforms regardless of stripping.

Having needed "config -e" this on arm64 made me look into this for all
platforms. Other platforms work because they don't strip these symbols.

Tweak objcopy(1)'s stripping on amd64 and macppc to unbreak permanent
modifications. I have no alpha or i386 to test, so these remain broken.

macppc works without cranking media size.
amd64 was cranked to the smallest possible size.

OK deraadt


# 1.32 07-Nov-2021 deraadt

increase ramdisk space for another driver


Revision tags: OPENBSD_7_0_BASE
# 1.31 26-Jul-2021 kn

Pass make flags to kernel and lib builds

Running `make -j4' in /usr/src/distrib/amd64/ramdisk_cd/ et al. executes
make(1) to both build the RAMDISK kernel and build libraries.

Doing so does not propagate the flags specified to the ramdisk_cd
invocation, which in turn means `-j4' for example is ignored and both kernel
and libraries will not be built in parallel.

Pass make(1)'s MFLAGS along to retain relevant flags; make is clever enough
to separate flags, variable assignments and targets from each other and only
pass along things to `MFLAGS' that'd make sense, i.e. `make -C. -j4 foo=bar'
does *not* pass `-C.' to change directories.
(can be easily tested with `make -p ... | grep MFLAGS'.)

This makes hacking on ramdisks/the installer much faster, espescially since
the `bsd' target does `make clean' and therefore builds a new kernel every
time.

OK deraadt


Revision tags: OPENBSD_6_9_BASE
# 1.30 14-Feb-2021 semarie

distrib: restore rdsetroot -x usage (extract the disk.fs image) on stripped bsd.rd

It passes options to keep rd_root_size and rd_root_image symbols while
stripping. These symbols are the ones used by rdsetroot to insert or
extract disk image into RAMDISK.

ok danj@ deraadt@


# 1.29 14-Feb-2021 semarie

distrib: use ${MACHINE} instead of hardcoded value

ok deraadt@


# 1.28 13-Feb-2021 semarie

distrib: remove .comment section systematically

remove this section as part of crunchgen generated commands.
it avoids calling "strip -R .comment" for some but not all architectures.

ok deraadt@ danj@


# 1.27 13-Feb-2021 semarie

distrib: remove .SUNW_ctf only on kernels

the .SUNW_ctf section is added by ctfstrip(1), which is only used for kernels.

ok deraadt@ danj@


# 1.26 13-Feb-2021 semarie

distrib: merge "cp a b; strip b" to "objcopy -S a b"

ok deraadt@ danj@


# 1.25 13-Feb-2021 semarie

distrib: remove duplicate strip(1) calls

"strip -R section" command run "strip" (without option) as well.
there is no need to call both.

(binaries checked with sha1)

original diff from danj@

ok deraadt@


# 1.24 05-Jan-2021 deraadt

distribute the gzip'd version of bsd.rd on platforms where we all boot
methods support it. if anyone finds a method which does not work, please
speak up.


Revision tags: OPENBSD_6_8_BASE
# 1.23 15-Sep-2020 deraadt

grow amd64 ramdisk_cd.......


# 1.22 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.21 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.20 07-Jun-2019 deraadt

eliminate differences between all the list files as much as
possible, and remove the failed previous attempts at sharing
in ./miniroot and ./ramdisk. maybe now that differences are
eliminated we can start a new sharing effort? i dunno..


# 1.19 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.18 01-May-2019 deraadt

verbose mkhybrid was never needed on these arch


# 1.17 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.16 30-Apr-2019 deraadt

repair more trivial differences


# 1.15 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.14 30-Apr-2019 deraadt

pull cdfs into ramdisk_cd


# 1.13 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.12 08-Jul-2017 florian

Increase size to make slaacd fit.
Size problem noted by me, correct fix from deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.11 30-Dec-2016 deraadt

Install cert.pem + ftp(1) binary that supports SSL, so the install script
can perform https fetches. While non-critical for sets (which are verified
using signify), it is an uplift for communication towards the ftp.openbsd.org
cgi which provides mirror proposals, entropy seeds, and current time.
[The install script changes are not included in this commit]
ok beck jsing rpe


# 1.10 19-Oct-2016 natano

Inline IMAGE, CBIN, CRUNCHCONF and XNAME.
ok deraadt


# 1.9 19-Oct-2016 deraadt

Unshare Makefile.inc so we can determine how to squeeze makefs
into the picture.
ok natano


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.8 06-Sep-2015 kettenis

Use the new fdisk -b functionality to put an EFI system partition on the
minirootXX.fs image and put the new UEFI bootloader on there.

Stop relying on /etc/disktab for the partition layout. Instead use a suitable
template and let disklabel(8) allocate all remaining free space to the 'a'
partition.

ok deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.7 16-Jul-2014 okan

zap trailing newlines; "go for it" deraadt


Revision tags: OPENBSD_5_5_BASE
# 1.6 02-Mar-2014 deraadt

create small i386 and amd64 miniroots. These can be dd'd to a usb stick
or such, and easily booted.
Work by chris, integration mechanism by me


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.5 18-Oct-2010 deraadt

Place a smaller spwd.db onto the install media. Be consistant with the naming
of the "additional" list files (for architectures which split the list)
Then... cleanup some TZ which it is clear should not have been placed onto
certain media which don't have the space for them.


Revision tags: OPENBSD_4_8_BASE
# 1.4 06-Apr-2010 deraadt

double size of amd64 boot media
tested by krw


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.3 09-Aug-2007 deraadt

do not install the cdromXX.fs file, it is useless


# 1.2 19-May-2007 millert

Make FLOPPYSIZE be in terms of 512 byte blocks like all the other ports.
This was something I missed in the initial "newfs -c" conversion.


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.1 07-Feb-2004 deraadt

first cut; most written by mickey, couple tunings by me


# 1.34 13-Nov-2021 kn

Use long filenames by default on FAT filesystems

These days, 8.3 filenames are often a problem, filesystems containing
firmware with long names must not truncate them -- it's also a sane default
as portable file system between OSes, anyway.

Altough undocumented in mount_msdos(8), the default for FAT32 already is to
use long filenames: ever since its import from NetBSD in 1998.

Previously, mount_msdos would ignore long filenames and default to short
filenames unless a flag was used or long ones were found on the filesystem
prior to mounting it.

Just always mount with support for long filenames (unless `-s' is used).


As various install media use FAT filesystems, adjust the remaining ones to
also pass explicit mount option reflecting the previous default.

OK deraadt


# 1.33 11-Nov-2021 kn

Make "config -e" work with ramdisk kernels

amd64, alpha, i386 and macppc strip *all* symbols off the ramdisk bsd.rd
(before compressing it) and thus break config(8)'s modification feature:

$ gzcat bsd.rd > bsd.rd.raw
$ config -e bsd.rd.raw
...
config: failed to get first cfdata

This is different from "boot> boot /bsd.rd -c" which sucessfully drops into
UKC on all platforms regardless of stripping.

Having needed "config -e" this on arm64 made me look into this for all
platforms. Other platforms work because they don't strip these symbols.

Tweak objcopy(1)'s stripping on amd64 and macppc to unbreak permanent
modifications. I have no alpha or i386 to test, so these remain broken.

macppc works without cranking media size.
amd64 was cranked to the smallest possible size.

OK deraadt


# 1.32 07-Nov-2021 deraadt

increase ramdisk space for another driver


Revision tags: OPENBSD_7_0_BASE
# 1.31 26-Jul-2021 kn

Pass make flags to kernel and lib builds

Running `make -j4' in /usr/src/distrib/amd64/ramdisk_cd/ et al. executes
make(1) to both build the RAMDISK kernel and build libraries.

Doing so does not propagate the flags specified to the ramdisk_cd
invocation, which in turn means `-j4' for example is ignored and both kernel
and libraries will not be built in parallel.

Pass make(1)'s MFLAGS along to retain relevant flags; make is clever enough
to separate flags, variable assignments and targets from each other and only
pass along things to `MFLAGS' that'd make sense, i.e. `make -C. -j4 foo=bar'
does *not* pass `-C.' to change directories.
(can be easily tested with `make -p ... | grep MFLAGS'.)

This makes hacking on ramdisks/the installer much faster, espescially since
the `bsd' target does `make clean' and therefore builds a new kernel every
time.

OK deraadt


Revision tags: OPENBSD_6_9_BASE
# 1.30 14-Feb-2021 semarie

distrib: restore rdsetroot -x usage (extract the disk.fs image) on stripped bsd.rd

It passes options to keep rd_root_size and rd_root_image symbols while
stripping. These symbols are the ones used by rdsetroot to insert or
extract disk image into RAMDISK.

ok danj@ deraadt@


# 1.29 14-Feb-2021 semarie

distrib: use ${MACHINE} instead of hardcoded value

ok deraadt@


# 1.28 13-Feb-2021 semarie

distrib: remove .comment section systematically

remove this section as part of crunchgen generated commands.
it avoids calling "strip -R .comment" for some but not all architectures.

ok deraadt@ danj@


# 1.27 13-Feb-2021 semarie

distrib: remove .SUNW_ctf only on kernels

the .SUNW_ctf section is added by ctfstrip(1), which is only used for kernels.

ok deraadt@ danj@


# 1.26 13-Feb-2021 semarie

distrib: merge "cp a b; strip b" to "objcopy -S a b"

ok deraadt@ danj@


# 1.25 13-Feb-2021 semarie

distrib: remove duplicate strip(1) calls

"strip -R section" command run "strip" (without option) as well.
there is no need to call both.

(binaries checked with sha1)

original diff from danj@

ok deraadt@


# 1.24 05-Jan-2021 deraadt

distribute the gzip'd version of bsd.rd on platforms where we all boot
methods support it. if anyone finds a method which does not work, please
speak up.


Revision tags: OPENBSD_6_8_BASE
# 1.23 15-Sep-2020 deraadt

grow amd64 ramdisk_cd.......


# 1.22 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.21 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.20 07-Jun-2019 deraadt

eliminate differences between all the list files as much as
possible, and remove the failed previous attempts at sharing
in ./miniroot and ./ramdisk. maybe now that differences are
eliminated we can start a new sharing effort? i dunno..


# 1.19 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.18 01-May-2019 deraadt

verbose mkhybrid was never needed on these arch


# 1.17 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.16 30-Apr-2019 deraadt

repair more trivial differences


# 1.15 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.14 30-Apr-2019 deraadt

pull cdfs into ramdisk_cd


# 1.13 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.12 08-Jul-2017 florian

Increase size to make slaacd fit.
Size problem noted by me, correct fix from deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.11 30-Dec-2016 deraadt

Install cert.pem + ftp(1) binary that supports SSL, so the install script
can perform https fetches. While non-critical for sets (which are verified
using signify), it is an uplift for communication towards the ftp.openbsd.org
cgi which provides mirror proposals, entropy seeds, and current time.
[The install script changes are not included in this commit]
ok beck jsing rpe


# 1.10 19-Oct-2016 natano

Inline IMAGE, CBIN, CRUNCHCONF and XNAME.
ok deraadt


# 1.9 19-Oct-2016 deraadt

Unshare Makefile.inc so we can determine how to squeeze makefs
into the picture.
ok natano


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.8 06-Sep-2015 kettenis

Use the new fdisk -b functionality to put an EFI system partition on the
minirootXX.fs image and put the new UEFI bootloader on there.

Stop relying on /etc/disktab for the partition layout. Instead use a suitable
template and let disklabel(8) allocate all remaining free space to the 'a'
partition.

ok deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.7 16-Jul-2014 okan

zap trailing newlines; "go for it" deraadt


Revision tags: OPENBSD_5_5_BASE
# 1.6 02-Mar-2014 deraadt

create small i386 and amd64 miniroots. These can be dd'd to a usb stick
or such, and easily booted.
Work by chris, integration mechanism by me


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.5 18-Oct-2010 deraadt

Place a smaller spwd.db onto the install media. Be consistant with the naming
of the "additional" list files (for architectures which split the list)
Then... cleanup some TZ which it is clear should not have been placed onto
certain media which don't have the space for them.


Revision tags: OPENBSD_4_8_BASE
# 1.4 06-Apr-2010 deraadt

double size of amd64 boot media
tested by krw


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.3 09-Aug-2007 deraadt

do not install the cdromXX.fs file, it is useless


# 1.2 19-May-2007 millert

Make FLOPPYSIZE be in terms of 512 byte blocks like all the other ports.
This was something I missed in the initial "newfs -c" conversion.


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.1 07-Feb-2004 deraadt

first cut; most written by mickey, couple tunings by me


# 1.33 11-Nov-2021 kn

Make "config -e" work with ramdisk kernels

amd64, alpha, i386 and macppc strip *all* symbols off the ramdisk bsd.rd
(before compressing it) and thus break config(8)'s modification feature:

$ gzcat bsd.rd > bsd.rd.raw
$ config -e bsd.rd.raw
...
config: failed to get first cfdata

This is different from "boot> boot /bsd.rd -c" which sucessfully drops into
UKC on all platforms regardless of stripping.

Having needed "config -e" this on arm64 made me look into this for all
platforms. Other platforms work because they don't strip these symbols.

Tweak objcopy(1)'s stripping on amd64 and macppc to unbreak permanent
modifications. I have no alpha or i386 to test, so these remain broken.

macppc works without cranking media size.
amd64 was cranked to the smallest possible size.

OK deraadt


# 1.32 07-Nov-2021 deraadt

increase ramdisk space for another driver


Revision tags: OPENBSD_7_0_BASE
# 1.31 26-Jul-2021 kn

Pass make flags to kernel and lib builds

Running `make -j4' in /usr/src/distrib/amd64/ramdisk_cd/ et al. executes
make(1) to both build the RAMDISK kernel and build libraries.

Doing so does not propagate the flags specified to the ramdisk_cd
invocation, which in turn means `-j4' for example is ignored and both kernel
and libraries will not be built in parallel.

Pass make(1)'s MFLAGS along to retain relevant flags; make is clever enough
to separate flags, variable assignments and targets from each other and only
pass along things to `MFLAGS' that'd make sense, i.e. `make -C. -j4 foo=bar'
does *not* pass `-C.' to change directories.
(can be easily tested with `make -p ... | grep MFLAGS'.)

This makes hacking on ramdisks/the installer much faster, espescially since
the `bsd' target does `make clean' and therefore builds a new kernel every
time.

OK deraadt


Revision tags: OPENBSD_6_9_BASE
# 1.30 14-Feb-2021 semarie

distrib: restore rdsetroot -x usage (extract the disk.fs image) on stripped bsd.rd

It passes options to keep rd_root_size and rd_root_image symbols while
stripping. These symbols are the ones used by rdsetroot to insert or
extract disk image into RAMDISK.

ok danj@ deraadt@


# 1.29 14-Feb-2021 semarie

distrib: use ${MACHINE} instead of hardcoded value

ok deraadt@


# 1.28 13-Feb-2021 semarie

distrib: remove .comment section systematically

remove this section as part of crunchgen generated commands.
it avoids calling "strip -R .comment" for some but not all architectures.

ok deraadt@ danj@


# 1.27 13-Feb-2021 semarie

distrib: remove .SUNW_ctf only on kernels

the .SUNW_ctf section is added by ctfstrip(1), which is only used for kernels.

ok deraadt@ danj@


# 1.26 13-Feb-2021 semarie

distrib: merge "cp a b; strip b" to "objcopy -S a b"

ok deraadt@ danj@


# 1.25 13-Feb-2021 semarie

distrib: remove duplicate strip(1) calls

"strip -R section" command run "strip" (without option) as well.
there is no need to call both.

(binaries checked with sha1)

original diff from danj@

ok deraadt@


# 1.24 05-Jan-2021 deraadt

distribute the gzip'd version of bsd.rd on platforms where we all boot
methods support it. if anyone finds a method which does not work, please
speak up.


Revision tags: OPENBSD_6_8_BASE
# 1.23 15-Sep-2020 deraadt

grow amd64 ramdisk_cd.......


# 1.22 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.21 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.20 07-Jun-2019 deraadt

eliminate differences between all the list files as much as
possible, and remove the failed previous attempts at sharing
in ./miniroot and ./ramdisk. maybe now that differences are
eliminated we can start a new sharing effort? i dunno..


# 1.19 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.18 01-May-2019 deraadt

verbose mkhybrid was never needed on these arch


# 1.17 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.16 30-Apr-2019 deraadt

repair more trivial differences


# 1.15 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.14 30-Apr-2019 deraadt

pull cdfs into ramdisk_cd


# 1.13 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.12 08-Jul-2017 florian

Increase size to make slaacd fit.
Size problem noted by me, correct fix from deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.11 30-Dec-2016 deraadt

Install cert.pem + ftp(1) binary that supports SSL, so the install script
can perform https fetches. While non-critical for sets (which are verified
using signify), it is an uplift for communication towards the ftp.openbsd.org
cgi which provides mirror proposals, entropy seeds, and current time.
[The install script changes are not included in this commit]
ok beck jsing rpe


# 1.10 19-Oct-2016 natano

Inline IMAGE, CBIN, CRUNCHCONF and XNAME.
ok deraadt


# 1.9 19-Oct-2016 deraadt

Unshare Makefile.inc so we can determine how to squeeze makefs
into the picture.
ok natano


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.8 06-Sep-2015 kettenis

Use the new fdisk -b functionality to put an EFI system partition on the
minirootXX.fs image and put the new UEFI bootloader on there.

Stop relying on /etc/disktab for the partition layout. Instead use a suitable
template and let disklabel(8) allocate all remaining free space to the 'a'
partition.

ok deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.7 16-Jul-2014 okan

zap trailing newlines; "go for it" deraadt


Revision tags: OPENBSD_5_5_BASE
# 1.6 02-Mar-2014 deraadt

create small i386 and amd64 miniroots. These can be dd'd to a usb stick
or such, and easily booted.
Work by chris, integration mechanism by me


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.5 18-Oct-2010 deraadt

Place a smaller spwd.db onto the install media. Be consistant with the naming
of the "additional" list files (for architectures which split the list)
Then... cleanup some TZ which it is clear should not have been placed onto
certain media which don't have the space for them.


Revision tags: OPENBSD_4_8_BASE
# 1.4 06-Apr-2010 deraadt

double size of amd64 boot media
tested by krw


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.3 09-Aug-2007 deraadt

do not install the cdromXX.fs file, it is useless


# 1.2 19-May-2007 millert

Make FLOPPYSIZE be in terms of 512 byte blocks like all the other ports.
This was something I missed in the initial "newfs -c" conversion.


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.1 07-Feb-2004 deraadt

first cut; most written by mickey, couple tunings by me


# 1.32 07-Nov-2021 deraadt

increase ramdisk space for another driver


Revision tags: OPENBSD_7_0_BASE
# 1.31 26-Jul-2021 kn

Pass make flags to kernel and lib builds

Running `make -j4' in /usr/src/distrib/amd64/ramdisk_cd/ et al. executes
make(1) to both build the RAMDISK kernel and build libraries.

Doing so does not propagate the flags specified to the ramdisk_cd
invocation, which in turn means `-j4' for example is ignored and both kernel
and libraries will not be built in parallel.

Pass make(1)'s MFLAGS along to retain relevant flags; make is clever enough
to separate flags, variable assignments and targets from each other and only
pass along things to `MFLAGS' that'd make sense, i.e. `make -C. -j4 foo=bar'
does *not* pass `-C.' to change directories.
(can be easily tested with `make -p ... | grep MFLAGS'.)

This makes hacking on ramdisks/the installer much faster, espescially since
the `bsd' target does `make clean' and therefore builds a new kernel every
time.

OK deraadt


Revision tags: OPENBSD_6_9_BASE
# 1.30 14-Feb-2021 semarie

distrib: restore rdsetroot -x usage (extract the disk.fs image) on stripped bsd.rd

It passes options to keep rd_root_size and rd_root_image symbols while
stripping. These symbols are the ones used by rdsetroot to insert or
extract disk image into RAMDISK.

ok danj@ deraadt@


# 1.29 14-Feb-2021 semarie

distrib: use ${MACHINE} instead of hardcoded value

ok deraadt@


# 1.28 13-Feb-2021 semarie

distrib: remove .comment section systematically

remove this section as part of crunchgen generated commands.
it avoids calling "strip -R .comment" for some but not all architectures.

ok deraadt@ danj@


# 1.27 13-Feb-2021 semarie

distrib: remove .SUNW_ctf only on kernels

the .SUNW_ctf section is added by ctfstrip(1), which is only used for kernels.

ok deraadt@ danj@


# 1.26 13-Feb-2021 semarie

distrib: merge "cp a b; strip b" to "objcopy -S a b"

ok deraadt@ danj@


# 1.25 13-Feb-2021 semarie

distrib: remove duplicate strip(1) calls

"strip -R section" command run "strip" (without option) as well.
there is no need to call both.

(binaries checked with sha1)

original diff from danj@

ok deraadt@


# 1.24 05-Jan-2021 deraadt

distribute the gzip'd version of bsd.rd on platforms where we all boot
methods support it. if anyone finds a method which does not work, please
speak up.


Revision tags: OPENBSD_6_8_BASE
# 1.23 15-Sep-2020 deraadt

grow amd64 ramdisk_cd.......


# 1.22 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.21 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.20 07-Jun-2019 deraadt

eliminate differences between all the list files as much as
possible, and remove the failed previous attempts at sharing
in ./miniroot and ./ramdisk. maybe now that differences are
eliminated we can start a new sharing effort? i dunno..


# 1.19 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.18 01-May-2019 deraadt

verbose mkhybrid was never needed on these arch


# 1.17 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.16 30-Apr-2019 deraadt

repair more trivial differences


# 1.15 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.14 30-Apr-2019 deraadt

pull cdfs into ramdisk_cd


# 1.13 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.12 08-Jul-2017 florian

Increase size to make slaacd fit.
Size problem noted by me, correct fix from deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.11 30-Dec-2016 deraadt

Install cert.pem + ftp(1) binary that supports SSL, so the install script
can perform https fetches. While non-critical for sets (which are verified
using signify), it is an uplift for communication towards the ftp.openbsd.org
cgi which provides mirror proposals, entropy seeds, and current time.
[The install script changes are not included in this commit]
ok beck jsing rpe


# 1.10 19-Oct-2016 natano

Inline IMAGE, CBIN, CRUNCHCONF and XNAME.
ok deraadt


# 1.9 19-Oct-2016 deraadt

Unshare Makefile.inc so we can determine how to squeeze makefs
into the picture.
ok natano


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.8 06-Sep-2015 kettenis

Use the new fdisk -b functionality to put an EFI system partition on the
minirootXX.fs image and put the new UEFI bootloader on there.

Stop relying on /etc/disktab for the partition layout. Instead use a suitable
template and let disklabel(8) allocate all remaining free space to the 'a'
partition.

ok deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.7 16-Jul-2014 okan

zap trailing newlines; "go for it" deraadt


Revision tags: OPENBSD_5_5_BASE
# 1.6 02-Mar-2014 deraadt

create small i386 and amd64 miniroots. These can be dd'd to a usb stick
or such, and easily booted.
Work by chris, integration mechanism by me


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.5 18-Oct-2010 deraadt

Place a smaller spwd.db onto the install media. Be consistant with the naming
of the "additional" list files (for architectures which split the list)
Then... cleanup some TZ which it is clear should not have been placed onto
certain media which don't have the space for them.


Revision tags: OPENBSD_4_8_BASE
# 1.4 06-Apr-2010 deraadt

double size of amd64 boot media
tested by krw


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.3 09-Aug-2007 deraadt

do not install the cdromXX.fs file, it is useless


# 1.2 19-May-2007 millert

Make FLOPPYSIZE be in terms of 512 byte blocks like all the other ports.
This was something I missed in the initial "newfs -c" conversion.


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.1 07-Feb-2004 deraadt

first cut; most written by mickey, couple tunings by me


# 1.31 26-Jul-2021 kn

Pass make flags to kernel and lib builds

Running `make -j4' in /usr/src/distrib/amd64/ramdisk_cd/ et al. executes
make(1) to both build the RAMDISK kernel and build libraries.

Doing so does not propagate the flags specified to the ramdisk_cd
invocation, which in turn means `-j4' for example is ignored and both kernel
and libraries will not be built in parallel.

Pass make(1)'s MFLAGS along to retain relevant flags; make is clever enough
to separate flags, variable assignments and targets from each other and only
pass along things to `MFLAGS' that'd make sense, i.e. `make -C. -j4 foo=bar'
does *not* pass `-C.' to change directories.
(can be easily tested with `make -p ... | grep MFLAGS'.)

This makes hacking on ramdisks/the installer much faster, espescially since
the `bsd' target does `make clean' and therefore builds a new kernel every
time.

OK deraadt


Revision tags: OPENBSD_6_9_BASE
# 1.30 14-Feb-2021 semarie

distrib: restore rdsetroot -x usage (extract the disk.fs image) on stripped bsd.rd

It passes options to keep rd_root_size and rd_root_image symbols while
stripping. These symbols are the ones used by rdsetroot to insert or
extract disk image into RAMDISK.

ok danj@ deraadt@


# 1.29 14-Feb-2021 semarie

distrib: use ${MACHINE} instead of hardcoded value

ok deraadt@


# 1.28 13-Feb-2021 semarie

distrib: remove .comment section systematically

remove this section as part of crunchgen generated commands.
it avoids calling "strip -R .comment" for some but not all architectures.

ok deraadt@ danj@


# 1.27 13-Feb-2021 semarie

distrib: remove .SUNW_ctf only on kernels

the .SUNW_ctf section is added by ctfstrip(1), which is only used for kernels.

ok deraadt@ danj@


# 1.26 13-Feb-2021 semarie

distrib: merge "cp a b; strip b" to "objcopy -S a b"

ok deraadt@ danj@


# 1.25 13-Feb-2021 semarie

distrib: remove duplicate strip(1) calls

"strip -R section" command run "strip" (without option) as well.
there is no need to call both.

(binaries checked with sha1)

original diff from danj@

ok deraadt@


# 1.24 05-Jan-2021 deraadt

distribute the gzip'd version of bsd.rd on platforms where we all boot
methods support it. if anyone finds a method which does not work, please
speak up.


Revision tags: OPENBSD_6_8_BASE
# 1.23 15-Sep-2020 deraadt

grow amd64 ramdisk_cd.......


# 1.22 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.21 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.20 07-Jun-2019 deraadt

eliminate differences between all the list files as much as
possible, and remove the failed previous attempts at sharing
in ./miniroot and ./ramdisk. maybe now that differences are
eliminated we can start a new sharing effort? i dunno..


# 1.19 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.18 01-May-2019 deraadt

verbose mkhybrid was never needed on these arch


# 1.17 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.16 30-Apr-2019 deraadt

repair more trivial differences


# 1.15 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.14 30-Apr-2019 deraadt

pull cdfs into ramdisk_cd


# 1.13 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.12 08-Jul-2017 florian

Increase size to make slaacd fit.
Size problem noted by me, correct fix from deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.11 30-Dec-2016 deraadt

Install cert.pem + ftp(1) binary that supports SSL, so the install script
can perform https fetches. While non-critical for sets (which are verified
using signify), it is an uplift for communication towards the ftp.openbsd.org
cgi which provides mirror proposals, entropy seeds, and current time.
[The install script changes are not included in this commit]
ok beck jsing rpe


# 1.10 19-Oct-2016 natano

Inline IMAGE, CBIN, CRUNCHCONF and XNAME.
ok deraadt


# 1.9 19-Oct-2016 deraadt

Unshare Makefile.inc so we can determine how to squeeze makefs
into the picture.
ok natano


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.8 06-Sep-2015 kettenis

Use the new fdisk -b functionality to put an EFI system partition on the
minirootXX.fs image and put the new UEFI bootloader on there.

Stop relying on /etc/disktab for the partition layout. Instead use a suitable
template and let disklabel(8) allocate all remaining free space to the 'a'
partition.

ok deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.7 16-Jul-2014 okan

zap trailing newlines; "go for it" deraadt


Revision tags: OPENBSD_5_5_BASE
# 1.6 02-Mar-2014 deraadt

create small i386 and amd64 miniroots. These can be dd'd to a usb stick
or such, and easily booted.
Work by chris, integration mechanism by me


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.5 18-Oct-2010 deraadt

Place a smaller spwd.db onto the install media. Be consistant with the naming
of the "additional" list files (for architectures which split the list)
Then... cleanup some TZ which it is clear should not have been placed onto
certain media which don't have the space for them.


Revision tags: OPENBSD_4_8_BASE
# 1.4 06-Apr-2010 deraadt

double size of amd64 boot media
tested by krw


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.3 09-Aug-2007 deraadt

do not install the cdromXX.fs file, it is useless


# 1.2 19-May-2007 millert

Make FLOPPYSIZE be in terms of 512 byte blocks like all the other ports.
This was something I missed in the initial "newfs -c" conversion.


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.1 07-Feb-2004 deraadt

first cut; most written by mickey, couple tunings by me


# 1.30 14-Feb-2021 semarie

distrib: restore rdsetroot -x usage (extract the disk.fs image) on stripped bsd.rd

It passes options to keep rd_root_size and rd_root_image symbols while
stripping. These symbols are the ones used by rdsetroot to insert or
extract disk image into RAMDISK.

ok danj@ deraadt@


# 1.29 14-Feb-2021 semarie

distrib: use ${MACHINE} instead of hardcoded value

ok deraadt@


# 1.28 13-Feb-2021 semarie

distrib: remove .comment section systematically

remove this section as part of crunchgen generated commands.
it avoids calling "strip -R .comment" for some but not all architectures.

ok deraadt@ danj@


# 1.27 13-Feb-2021 semarie

distrib: remove .SUNW_ctf only on kernels

the .SUNW_ctf section is added by ctfstrip(1), which is only used for kernels.

ok deraadt@ danj@


# 1.26 13-Feb-2021 semarie

distrib: merge "cp a b; strip b" to "objcopy -S a b"

ok deraadt@ danj@


# 1.25 13-Feb-2021 semarie

distrib: remove duplicate strip(1) calls

"strip -R section" command run "strip" (without option) as well.
there is no need to call both.

(binaries checked with sha1)

original diff from danj@

ok deraadt@


# 1.24 05-Jan-2021 deraadt

distribute the gzip'd version of bsd.rd on platforms where we all boot
methods support it. if anyone finds a method which does not work, please
speak up.


Revision tags: OPENBSD_6_8_BASE
# 1.23 15-Sep-2020 deraadt

grow amd64 ramdisk_cd.......


# 1.22 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.21 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.20 07-Jun-2019 deraadt

eliminate differences between all the list files as much as
possible, and remove the failed previous attempts at sharing
in ./miniroot and ./ramdisk. maybe now that differences are
eliminated we can start a new sharing effort? i dunno..


# 1.19 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.18 01-May-2019 deraadt

verbose mkhybrid was never needed on these arch


# 1.17 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.16 30-Apr-2019 deraadt

repair more trivial differences


# 1.15 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.14 30-Apr-2019 deraadt

pull cdfs into ramdisk_cd


# 1.13 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.12 08-Jul-2017 florian

Increase size to make slaacd fit.
Size problem noted by me, correct fix from deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.11 30-Dec-2016 deraadt

Install cert.pem + ftp(1) binary that supports SSL, so the install script
can perform https fetches. While non-critical for sets (which are verified
using signify), it is an uplift for communication towards the ftp.openbsd.org
cgi which provides mirror proposals, entropy seeds, and current time.
[The install script changes are not included in this commit]
ok beck jsing rpe


# 1.10 19-Oct-2016 natano

Inline IMAGE, CBIN, CRUNCHCONF and XNAME.
ok deraadt


# 1.9 19-Oct-2016 deraadt

Unshare Makefile.inc so we can determine how to squeeze makefs
into the picture.
ok natano


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.8 06-Sep-2015 kettenis

Use the new fdisk -b functionality to put an EFI system partition on the
minirootXX.fs image and put the new UEFI bootloader on there.

Stop relying on /etc/disktab for the partition layout. Instead use a suitable
template and let disklabel(8) allocate all remaining free space to the 'a'
partition.

ok deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.7 16-Jul-2014 okan

zap trailing newlines; "go for it" deraadt


Revision tags: OPENBSD_5_5_BASE
# 1.6 02-Mar-2014 deraadt

create small i386 and amd64 miniroots. These can be dd'd to a usb stick
or such, and easily booted.
Work by chris, integration mechanism by me


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.5 18-Oct-2010 deraadt

Place a smaller spwd.db onto the install media. Be consistant with the naming
of the "additional" list files (for architectures which split the list)
Then... cleanup some TZ which it is clear should not have been placed onto
certain media which don't have the space for them.


Revision tags: OPENBSD_4_8_BASE
# 1.4 06-Apr-2010 deraadt

double size of amd64 boot media
tested by krw


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.3 09-Aug-2007 deraadt

do not install the cdromXX.fs file, it is useless


# 1.2 19-May-2007 millert

Make FLOPPYSIZE be in terms of 512 byte blocks like all the other ports.
This was something I missed in the initial "newfs -c" conversion.


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.1 07-Feb-2004 deraadt

first cut; most written by mickey, couple tunings by me


# 1.24 05-Jan-2021 deraadt

distribute the gzip'd version of bsd.rd on platforms where we all boot
methods support it. if anyone finds a method which does not work, please
speak up.


Revision tags: OPENBSD_6_8_BASE
# 1.23 15-Sep-2020 deraadt

grow amd64 ramdisk_cd.......


# 1.22 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.21 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.20 07-Jun-2019 deraadt

eliminate differences between all the list files as much as
possible, and remove the failed previous attempts at sharing
in ./miniroot and ./ramdisk. maybe now that differences are
eliminated we can start a new sharing effort? i dunno..


# 1.19 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.18 01-May-2019 deraadt

verbose mkhybrid was never needed on these arch


# 1.17 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.16 30-Apr-2019 deraadt

repair more trivial differences


# 1.15 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.14 30-Apr-2019 deraadt

pull cdfs into ramdisk_cd


# 1.13 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.12 08-Jul-2017 florian

Increase size to make slaacd fit.
Size problem noted by me, correct fix from deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.11 30-Dec-2016 deraadt

Install cert.pem + ftp(1) binary that supports SSL, so the install script
can perform https fetches. While non-critical for sets (which are verified
using signify), it is an uplift for communication towards the ftp.openbsd.org
cgi which provides mirror proposals, entropy seeds, and current time.
[The install script changes are not included in this commit]
ok beck jsing rpe


# 1.10 19-Oct-2016 natano

Inline IMAGE, CBIN, CRUNCHCONF and XNAME.
ok deraadt


# 1.9 19-Oct-2016 deraadt

Unshare Makefile.inc so we can determine how to squeeze makefs
into the picture.
ok natano


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.8 06-Sep-2015 kettenis

Use the new fdisk -b functionality to put an EFI system partition on the
minirootXX.fs image and put the new UEFI bootloader on there.

Stop relying on /etc/disktab for the partition layout. Instead use a suitable
template and let disklabel(8) allocate all remaining free space to the 'a'
partition.

ok deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.7 16-Jul-2014 okan

zap trailing newlines; "go for it" deraadt


Revision tags: OPENBSD_5_5_BASE
# 1.6 02-Mar-2014 deraadt

create small i386 and amd64 miniroots. These can be dd'd to a usb stick
or such, and easily booted.
Work by chris, integration mechanism by me


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.5 18-Oct-2010 deraadt

Place a smaller spwd.db onto the install media. Be consistant with the naming
of the "additional" list files (for architectures which split the list)
Then... cleanup some TZ which it is clear should not have been placed onto
certain media which don't have the space for them.


Revision tags: OPENBSD_4_8_BASE
# 1.4 06-Apr-2010 deraadt

double size of amd64 boot media
tested by krw


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.3 09-Aug-2007 deraadt

do not install the cdromXX.fs file, it is useless


# 1.2 19-May-2007 millert

Make FLOPPYSIZE be in terms of 512 byte blocks like all the other ports.
This was something I missed in the initial "newfs -c" conversion.


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.1 07-Feb-2004 deraadt

first cut; most written by mickey, couple tunings by me


# 1.23 15-Sep-2020 deraadt

grow amd64 ramdisk_cd.......


# 1.22 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.21 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.20 07-Jun-2019 deraadt

eliminate differences between all the list files as much as
possible, and remove the failed previous attempts at sharing
in ./miniroot and ./ramdisk. maybe now that differences are
eliminated we can start a new sharing effort? i dunno..


# 1.19 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.18 01-May-2019 deraadt

verbose mkhybrid was never needed on these arch


# 1.17 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.16 30-Apr-2019 deraadt

repair more trivial differences


# 1.15 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.14 30-Apr-2019 deraadt

pull cdfs into ramdisk_cd


# 1.13 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.12 08-Jul-2017 florian

Increase size to make slaacd fit.
Size problem noted by me, correct fix from deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.11 30-Dec-2016 deraadt

Install cert.pem + ftp(1) binary that supports SSL, so the install script
can perform https fetches. While non-critical for sets (which are verified
using signify), it is an uplift for communication towards the ftp.openbsd.org
cgi which provides mirror proposals, entropy seeds, and current time.
[The install script changes are not included in this commit]
ok beck jsing rpe


# 1.10 19-Oct-2016 natano

Inline IMAGE, CBIN, CRUNCHCONF and XNAME.
ok deraadt


# 1.9 19-Oct-2016 deraadt

Unshare Makefile.inc so we can determine how to squeeze makefs
into the picture.
ok natano


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.8 06-Sep-2015 kettenis

Use the new fdisk -b functionality to put an EFI system partition on the
minirootXX.fs image and put the new UEFI bootloader on there.

Stop relying on /etc/disktab for the partition layout. Instead use a suitable
template and let disklabel(8) allocate all remaining free space to the 'a'
partition.

ok deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.7 16-Jul-2014 okan

zap trailing newlines; "go for it" deraadt


Revision tags: OPENBSD_5_5_BASE
# 1.6 02-Mar-2014 deraadt

create small i386 and amd64 miniroots. These can be dd'd to a usb stick
or such, and easily booted.
Work by chris, integration mechanism by me


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.5 18-Oct-2010 deraadt

Place a smaller spwd.db onto the install media. Be consistant with the naming
of the "additional" list files (for architectures which split the list)
Then... cleanup some TZ which it is clear should not have been placed onto
certain media which don't have the space for them.


Revision tags: OPENBSD_4_8_BASE
# 1.4 06-Apr-2010 deraadt

double size of amd64 boot media
tested by krw


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.3 09-Aug-2007 deraadt

do not install the cdromXX.fs file, it is useless


# 1.2 19-May-2007 millert

Make FLOPPYSIZE be in terms of 512 byte blocks like all the other ports.
This was something I missed in the initial "newfs -c" conversion.


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.1 07-Feb-2004 deraadt

first cut; most written by mickey, couple tunings by me


# 1.22 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.21 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.20 07-Jun-2019 deraadt

eliminate differences between all the list files as much as
possible, and remove the failed previous attempts at sharing
in ./miniroot and ./ramdisk. maybe now that differences are
eliminated we can start a new sharing effort? i dunno..


# 1.19 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.18 01-May-2019 deraadt

verbose mkhybrid was never needed on these arch


# 1.17 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.16 30-Apr-2019 deraadt

repair more trivial differences


# 1.15 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.14 30-Apr-2019 deraadt

pull cdfs into ramdisk_cd


# 1.13 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.12 08-Jul-2017 florian

Increase size to make slaacd fit.
Size problem noted by me, correct fix from deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.11 30-Dec-2016 deraadt

Install cert.pem + ftp(1) binary that supports SSL, so the install script
can perform https fetches. While non-critical for sets (which are verified
using signify), it is an uplift for communication towards the ftp.openbsd.org
cgi which provides mirror proposals, entropy seeds, and current time.
[The install script changes are not included in this commit]
ok beck jsing rpe


# 1.10 19-Oct-2016 natano

Inline IMAGE, CBIN, CRUNCHCONF and XNAME.
ok deraadt


# 1.9 19-Oct-2016 deraadt

Unshare Makefile.inc so we can determine how to squeeze makefs
into the picture.
ok natano


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.8 06-Sep-2015 kettenis

Use the new fdisk -b functionality to put an EFI system partition on the
minirootXX.fs image and put the new UEFI bootloader on there.

Stop relying on /etc/disktab for the partition layout. Instead use a suitable
template and let disklabel(8) allocate all remaining free space to the 'a'
partition.

ok deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.7 16-Jul-2014 okan

zap trailing newlines; "go for it" deraadt


Revision tags: OPENBSD_5_5_BASE
# 1.6 02-Mar-2014 deraadt

create small i386 and amd64 miniroots. These can be dd'd to a usb stick
or such, and easily booted.
Work by chris, integration mechanism by me


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.5 18-Oct-2010 deraadt

Place a smaller spwd.db onto the install media. Be consistant with the naming
of the "additional" list files (for architectures which split the list)
Then... cleanup some TZ which it is clear should not have been placed onto
certain media which don't have the space for them.


Revision tags: OPENBSD_4_8_BASE
# 1.4 06-Apr-2010 deraadt

double size of amd64 boot media
tested by krw


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.3 09-Aug-2007 deraadt

do not install the cdromXX.fs file, it is useless


# 1.2 19-May-2007 millert

Make FLOPPYSIZE be in terms of 512 byte blocks like all the other ports.
This was something I missed in the initial "newfs -c" conversion.


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.1 07-Feb-2004 deraadt

first cut; most written by mickey, couple tunings by me


# 1.20 07-Jun-2019 deraadt

eliminate differences between all the list files as much as
possible, and remove the failed previous attempts at sharing
in ./miniroot and ./ramdisk. maybe now that differences are
eliminated we can start a new sharing effort? i dunno..


# 1.19 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.18 01-May-2019 deraadt

verbose mkhybrid was never needed on these arch


# 1.17 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.16 30-Apr-2019 deraadt

repair more trivial differences


# 1.15 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.14 30-Apr-2019 deraadt

pull cdfs into ramdisk_cd


# 1.13 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.12 08-Jul-2017 florian

Increase size to make slaacd fit.
Size problem noted by me, correct fix from deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.11 30-Dec-2016 deraadt

Install cert.pem + ftp(1) binary that supports SSL, so the install script
can perform https fetches. While non-critical for sets (which are verified
using signify), it is an uplift for communication towards the ftp.openbsd.org
cgi which provides mirror proposals, entropy seeds, and current time.
[The install script changes are not included in this commit]
ok beck jsing rpe


# 1.10 19-Oct-2016 natano

Inline IMAGE, CBIN, CRUNCHCONF and XNAME.
ok deraadt


# 1.9 19-Oct-2016 deraadt

Unshare Makefile.inc so we can determine how to squeeze makefs
into the picture.
ok natano


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.8 06-Sep-2015 kettenis

Use the new fdisk -b functionality to put an EFI system partition on the
minirootXX.fs image and put the new UEFI bootloader on there.

Stop relying on /etc/disktab for the partition layout. Instead use a suitable
template and let disklabel(8) allocate all remaining free space to the 'a'
partition.

ok deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.7 16-Jul-2014 okan

zap trailing newlines; "go for it" deraadt


Revision tags: OPENBSD_5_5_BASE
# 1.6 02-Mar-2014 deraadt

create small i386 and amd64 miniroots. These can be dd'd to a usb stick
or such, and easily booted.
Work by chris, integration mechanism by me


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.5 18-Oct-2010 deraadt

Place a smaller spwd.db onto the install media. Be consistant with the naming
of the "additional" list files (for architectures which split the list)
Then... cleanup some TZ which it is clear should not have been placed onto
certain media which don't have the space for them.


Revision tags: OPENBSD_4_8_BASE
# 1.4 06-Apr-2010 deraadt

double size of amd64 boot media
tested by krw


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.3 09-Aug-2007 deraadt

do not install the cdromXX.fs file, it is useless


# 1.2 19-May-2007 millert

Make FLOPPYSIZE be in terms of 512 byte blocks like all the other ports.
This was something I missed in the initial "newfs -c" conversion.


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.1 07-Feb-2004 deraadt

first cut; most written by mickey, couple tunings by me


# 1.19 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.18 01-May-2019 deraadt

verbose mkhybrid was never needed on these arch


# 1.17 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.16 30-Apr-2019 deraadt

repair more trivial differences


# 1.15 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.14 30-Apr-2019 deraadt

pull cdfs into ramdisk_cd


# 1.13 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.12 08-Jul-2017 florian

Increase size to make slaacd fit.
Size problem noted by me, correct fix from deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.11 30-Dec-2016 deraadt

Install cert.pem + ftp(1) binary that supports SSL, so the install script
can perform https fetches. While non-critical for sets (which are verified
using signify), it is an uplift for communication towards the ftp.openbsd.org
cgi which provides mirror proposals, entropy seeds, and current time.
[The install script changes are not included in this commit]
ok beck jsing rpe


# 1.10 19-Oct-2016 natano

Inline IMAGE, CBIN, CRUNCHCONF and XNAME.
ok deraadt


# 1.9 19-Oct-2016 deraadt

Unshare Makefile.inc so we can determine how to squeeze makefs
into the picture.
ok natano


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.8 06-Sep-2015 kettenis

Use the new fdisk -b functionality to put an EFI system partition on the
minirootXX.fs image and put the new UEFI bootloader on there.

Stop relying on /etc/disktab for the partition layout. Instead use a suitable
template and let disklabel(8) allocate all remaining free space to the 'a'
partition.

ok deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.7 16-Jul-2014 okan

zap trailing newlines; "go for it" deraadt


Revision tags: OPENBSD_5_5_BASE
# 1.6 02-Mar-2014 deraadt

create small i386 and amd64 miniroots. These can be dd'd to a usb stick
or such, and easily booted.
Work by chris, integration mechanism by me


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.5 18-Oct-2010 deraadt

Place a smaller spwd.db onto the install media. Be consistant with the naming
of the "additional" list files (for architectures which split the list)
Then... cleanup some TZ which it is clear should not have been placed onto
certain media which don't have the space for them.


Revision tags: OPENBSD_4_8_BASE
# 1.4 06-Apr-2010 deraadt

double size of amd64 boot media
tested by krw


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.3 09-Aug-2007 deraadt

do not install the cdromXX.fs file, it is useless


# 1.2 19-May-2007 millert

Make FLOPPYSIZE be in terms of 512 byte blocks like all the other ports.
This was something I missed in the initial "newfs -c" conversion.


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.1 07-Feb-2004 deraadt

first cut; most written by mickey, couple tunings by me


# 1.18 01-May-2019 deraadt

verbose mkhybrid was never needed on these arch


# 1.17 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.16 30-Apr-2019 deraadt

repair more trivial differences


# 1.15 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.14 30-Apr-2019 deraadt

pull cdfs into ramdisk_cd


# 1.13 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.12 08-Jul-2017 florian

Increase size to make slaacd fit.
Size problem noted by me, correct fix from deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.11 30-Dec-2016 deraadt

Install cert.pem + ftp(1) binary that supports SSL, so the install script
can perform https fetches. While non-critical for sets (which are verified
using signify), it is an uplift for communication towards the ftp.openbsd.org
cgi which provides mirror proposals, entropy seeds, and current time.
[The install script changes are not included in this commit]
ok beck jsing rpe


# 1.10 19-Oct-2016 natano

Inline IMAGE, CBIN, CRUNCHCONF and XNAME.
ok deraadt


# 1.9 19-Oct-2016 deraadt

Unshare Makefile.inc so we can determine how to squeeze makefs
into the picture.
ok natano


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.8 06-Sep-2015 kettenis

Use the new fdisk -b functionality to put an EFI system partition on the
minirootXX.fs image and put the new UEFI bootloader on there.

Stop relying on /etc/disktab for the partition layout. Instead use a suitable
template and let disklabel(8) allocate all remaining free space to the 'a'
partition.

ok deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.7 16-Jul-2014 okan

zap trailing newlines; "go for it" deraadt


Revision tags: OPENBSD_5_5_BASE
# 1.6 02-Mar-2014 deraadt

create small i386 and amd64 miniroots. These can be dd'd to a usb stick
or such, and easily booted.
Work by chris, integration mechanism by me


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.5 18-Oct-2010 deraadt

Place a smaller spwd.db onto the install media. Be consistant with the naming
of the "additional" list files (for architectures which split the list)
Then... cleanup some TZ which it is clear should not have been placed onto
certain media which don't have the space for them.


Revision tags: OPENBSD_4_8_BASE
# 1.4 06-Apr-2010 deraadt

double size of amd64 boot media
tested by krw


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.3 09-Aug-2007 deraadt

do not install the cdromXX.fs file, it is useless


# 1.2 19-May-2007 millert

Make FLOPPYSIZE be in terms of 512 byte blocks like all the other ports.
This was something I missed in the initial "newfs -c" conversion.


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.1 07-Feb-2004 deraadt

first cut; most written by mickey, couple tunings by me


# 1.17 30-Apr-2019 deraadt

step by step, more removal of differences


# 1.16 30-Apr-2019 deraadt

repair more trivial differences


# 1.15 30-Apr-2019 deraadt

rm is in /bin, no need to specify


# 1.14 30-Apr-2019 deraadt

pull cdfs into ramdisk_cd


# 1.13 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.12 08-Jul-2017 florian

Increase size to make slaacd fit.
Size problem noted by me, correct fix from deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.11 30-Dec-2016 deraadt

Install cert.pem + ftp(1) binary that supports SSL, so the install script
can perform https fetches. While non-critical for sets (which are verified
using signify), it is an uplift for communication towards the ftp.openbsd.org
cgi which provides mirror proposals, entropy seeds, and current time.
[The install script changes are not included in this commit]
ok beck jsing rpe


# 1.10 19-Oct-2016 natano

Inline IMAGE, CBIN, CRUNCHCONF and XNAME.
ok deraadt


# 1.9 19-Oct-2016 deraadt

Unshare Makefile.inc so we can determine how to squeeze makefs
into the picture.
ok natano


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.8 06-Sep-2015 kettenis

Use the new fdisk -b functionality to put an EFI system partition on the
minirootXX.fs image and put the new UEFI bootloader on there.

Stop relying on /etc/disktab for the partition layout. Instead use a suitable
template and let disklabel(8) allocate all remaining free space to the 'a'
partition.

ok deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.7 16-Jul-2014 okan

zap trailing newlines; "go for it" deraadt


Revision tags: OPENBSD_5_5_BASE
# 1.6 02-Mar-2014 deraadt

create small i386 and amd64 miniroots. These can be dd'd to a usb stick
or such, and easily booted.
Work by chris, integration mechanism by me


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.5 18-Oct-2010 deraadt

Place a smaller spwd.db onto the install media. Be consistant with the naming
of the "additional" list files (for architectures which split the list)
Then... cleanup some TZ which it is clear should not have been placed onto
certain media which don't have the space for them.


Revision tags: OPENBSD_4_8_BASE
# 1.4 06-Apr-2010 deraadt

double size of amd64 boot media
tested by krw


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.3 09-Aug-2007 deraadt

do not install the cdromXX.fs file, it is useless


# 1.2 19-May-2007 millert

Make FLOPPYSIZE be in terms of 512 byte blocks like all the other ports.
This was something I missed in the initial "newfs -c" conversion.


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.1 07-Feb-2004 deraadt

first cut; most written by mickey, couple tunings by me


Revision tags: OPENBSD_6_2_BASE
# 1.12 08-Jul-2017 florian

Increase size to make slaacd fit.
Size problem noted by me, correct fix from deraadt@


Revision tags: OPENBSD_6_1_BASE
# 1.11 30-Dec-2016 deraadt

Install cert.pem + ftp(1) binary that supports SSL, so the install script
can perform https fetches. While non-critical for sets (which are verified
using signify), it is an uplift for communication towards the ftp.openbsd.org
cgi which provides mirror proposals, entropy seeds, and current time.
[The install script changes are not included in this commit]
ok beck jsing rpe


# 1.10 19-Oct-2016 natano

Inline IMAGE, CBIN, CRUNCHCONF and XNAME.
ok deraadt


# 1.9 19-Oct-2016 deraadt

Unshare Makefile.inc so we can determine how to squeeze makefs
into the picture.
ok natano


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.8 06-Sep-2015 kettenis

Use the new fdisk -b functionality to put an EFI system partition on the
minirootXX.fs image and put the new UEFI bootloader on there.

Stop relying on /etc/disktab for the partition layout. Instead use a suitable
template and let disklabel(8) allocate all remaining free space to the 'a'
partition.

ok deraadt@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.7 16-Jul-2014 okan

zap trailing newlines; "go for it" deraadt


Revision tags: OPENBSD_5_5_BASE
# 1.6 02-Mar-2014 deraadt

create small i386 and amd64 miniroots. These can be dd'd to a usb stick
or such, and easily booted.
Work by chris, integration mechanism by me


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.5 18-Oct-2010 deraadt

Place a smaller spwd.db onto the install media. Be consistant with the naming
of the "additional" list files (for architectures which split the list)
Then... cleanup some TZ which it is clear should not have been placed onto
certain media which don't have the space for them.


Revision tags: OPENBSD_4_8_BASE
# 1.4 06-Apr-2010 deraadt

double size of amd64 boot media
tested by krw


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.3 09-Aug-2007 deraadt

do not install the cdromXX.fs file, it is useless


# 1.2 19-May-2007 millert

Make FLOPPYSIZE be in terms of 512 byte blocks like all the other ports.
This was something I missed in the initial "newfs -c" conversion.


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.1 07-Feb-2004 deraadt

first cut; most written by mickey, couple tunings by me