Home | History | Annotate | Download | only in common
History log of /src/distrib/common/buildfloppies.sh
RevisionDateAuthorComments
 1.20  24-Jan-2022  andvar remove double "with" in comments and usage text. Also fix one typo.
 1.19  16-Sep-2018  kre Remove use of test ([) -o (and a couple of other trivial cleanups).
 1.18  11-Feb-2017  christos branches: 1.18.10; 1.18.12;
more MKREPRO_TIMESTAMP fixes (for pax/tar generated files)
 1.17  12-Nov-2008  apb branches: 1.17.32; 1.17.36;
In buildfloppies.sh:
* Add a "-N etcdir" command line option, defaulting to /etc.
* Use pax in mtree mode. This is the same idea as the change made in
revision 1.14, with the following changes:
+ use ". type=dir optional" instead of just ". type=dir", so the
output will not contain an explicit entry for the directory.
+ Explicitly set type=file and mode=0444 in the mtree lines.
+ Pass "-N ${etcdir}" to pax to make it use the correct passwd and
group files.
+ Pass "-s^./,," to pax to make it strip the leading "./" from file
names.

In Makefile.tarfloppy:
* Pass "-N ${DESTDIR}/etc" to buildfloppies.sh.

The resulting flopies have been verified to be identical to those
produced by version 1.13 of buildfloppies.sh, except that file owners
and modes are changed.
 1.16  11-Nov-2008  dbj roll back to revision 1.13 until problems mentioned in
PR 39894
can be figured out.
i suspect we can add "boot" to the mtree input, but experimentation
needs to happen first.
 1.15  10-Nov-2008  dogcow If you really want to hardcode to a gid/uid, then use the numeric ones;
"wheel" doesn't exist across all unix-like systems.
 1.14  04-Nov-2008  dbj use an mtree template when building floppies to avoid local uid/gid in image
 1.13  30-Apr-2008  martin Convert TNF licenses to new 2 clause variant
 1.12  10-Sep-2005  dsl branches: 1.12.20; 1.12.22;
The 'padded by' number displayed for multi-floppy images has been out by 8k
per floppy for a while. (The rest of the sums are ok).
Change the 'padded' size to include all the space in the last 8k block
of the tar file.
Similarly if the image doesn't fit, report the exact amount of overflow.
 1.11  04-Sep-2005  dsl Report the exact number of free bytes in the install floppy images.
 1.10  03-Sep-2005  dsl Tell pax to use 8k (not 10k) buffers when generating the tar archive
of 'boot' and 'netbsd'.
This makes it possible for the tar archive to end at the end of the 2.88M
floppy, instead of either 4k before, or 6k after.
Gives us a whole extra 4k.
The very observant might realise that we don't need the final 1024 bytes
of nulls written to the floppy either, so they could be deleted!
 1.9  04-Mar-2005  dsl branches: 1.9.2;
When a boot floppy overran, the reported excess size was 8k too big.
 1.8  12-Jun-2004  dsl The code to pad floppies could sometimes overwrite the end of the kernel
(causing the decompress to generate random data).
I've changed it to pad using:
dd if=xx.fs of=xx.fs conv=sync conv=notrunc bs=${floppysize}b count=1
which isn't subject to rounding errors!
This might be the fix for PR/25552
 1.7  09-Nov-2003  lukem branches: 1.7.2;
When calculating the number of disks, take into account that every
floppy needs an 8KB tar volume header, not just the first.
Fixes size calculation bug reported by Frank van der Linden.
 1.6  07-Mar-2003  lukem improve calculation to determine number of disks required
 1.5  03-Mar-2003  dsl Report free space for unpadded floppies
(approved by christos)
 1.4  21-Dec-2002  lukem Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question. (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).
 1.3  04-May-2002  lukem - add support for [-s suffix] to buildfloppies.sh (defaults to "",
rather than the previous ".fs").
- add support for (optional) FLOPPYSUFFIX in Makefile.tarfloppy, and
use appropriately
- remove (now unnecessary) custom release targets in alpha/instkernel/*
 1.2  17-Apr-2002  tv Exit with nonzero status if the -i (installboot) command fails. (The media
certainly won't be usable in this case.)
 1.1  16-Apr-2002  lukem buildfloppies.sh -- build floppy images from the given files.
It can write multiple disks (up to a maximum number), and optionally
install a bootstrap or pad the last disk to the image size.
 1.7.2.1  10-Jul-2004  tron Pull up revision 1.8 (requested by dsl in ticket #632):
The code to pad floppies could sometimes overwrite the end of the kernel
(causing the decompress to generate random data).
I've changed it to pad using:
dd if=xx.fs of=xx.fs conv=sync conv=notrunc bs=${floppysize}b count=1
which isn't subject to rounding errors!
This might be the fix for PR/25552
 1.9.2.3  27-Nov-2005  riz Pull up following revision(s) (requested by dsl in ticket #1005):
distrib/common/buildfloppies.sh: revision 1.12
The 'padded by' number displayed for multi-floppy images has been out by 8k
per floppy for a while. (The rest of the sums are ok).
Change the 'padded' size to include all the space in the last 8k block
of the tar file.
Similarly if the image doesn't fit, report the exact amount of overflow.
 1.9.2.2  27-Nov-2005  riz Pull up following revision(s) (requested by dsl in ticket #1005):
distrib/common/buildfloppies.sh: revision 1.11
Report the exact number of free bytes in the install floppy images.
 1.9.2.1  19-Sep-2005  tron Pull up following revision(s) (requested by dsl in ticket #802):
distrib/common/buildfloppies.sh: revision 1.10
Tell pax to use 8k (not 10k) buffers when generating the tar archive
of 'boot' and 'netbsd'.
This makes it possible for the tar archive to end at the end of the 2.88M
floppy, instead of either 4k before, or 6k after.
Gives us a whole extra 4k.
The very observant might realise that we don't need the final 1024 bytes
of nulls written to the floppy either, so they could be deleted!
 1.12.22.1  18-May-2008  yamt sync with head.
 1.12.20.2  05-Oct-2008  mjf Sync with HEAD.
 1.12.20.1  02-Jun-2008  mjf Sync with HEAD.
 1.17.36.1  21-Apr-2017  bouyer Sync with HEAD
 1.17.32.1  20-Mar-2017  pgoyette Sync with HEAD
 1.18.12.1  10-Jun-2019  christos Sync with HEAD
 1.18.10.1  30-Sep-2018  pgoyette Ssync with HEAD

RSS XML Feed