The NetBSD Project

CVS log for src/distrib/common/buildfloppies.sh

[BACK] Up to [cvs.NetBSD.org] / src / distrib / common

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.20 / (download) - annotate - [select for diffs], Mon Jan 24 09:42:13 2022 UTC (2 years, 2 months ago) by andvar
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

remove double "with" in comments and usage text. Also fix one typo.

Revision 1.18.12.1 / (download) - annotate - [select for diffs], Mon Jun 10 21:42:19 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.18: +6 -4 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Sync with HEAD

Revision 1.18.10.1 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:01 2018 UTC (5 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.18: +6 -4 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Ssync with HEAD

Revision 1.19 / (download) - annotate - [select for diffs], Sun Sep 16 21:49:18 2018 UTC (5 years, 6 months ago) by kre
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.18: +6 -4 lines
Diff to previous 1.18 (colored)


Remove use of test ([) -o (and a couple of other trivial cleanups).

Revision 1.17.36.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:51:08 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.17: +6 -3 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Sync with HEAD

Revision 1.17.32.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:52:04 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.17: +6 -3 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Sync with HEAD

Revision 1.18 / (download) - annotate - [select for diffs], Sat Feb 11 03:07:06 2017 UTC (7 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-compat-base, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, bouyer-socketcan-base1
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.17: +6 -3 lines
Diff to previous 1.17 (colored)

more MKREPRO_TIMESTAMP fixes (for pax/tar generated files)

Revision 1.17 / (download) - annotate - [select for diffs], Wed Nov 12 14:22:16 2008 UTC (15 years, 4 months ago) by apb
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-premerge-20091211, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, localcount-20160914, khorben-n900, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, cherry-xenmp-base, cherry-xenmp, bouyer-socketcan-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.16: +28 -13 lines
Diff to previous 1.16 (colored)

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.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Nov 11 19:55:21 2008 UTC (15 years, 4 months ago) by dbj
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

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.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Nov 10 02:10:52 2008 UTC (15 years, 4 months ago) by dogcow
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

If you really want to hardcode to a gid/uid, then use the numeric ones;
"wheel" doesn't exist across all unix-like systems.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Nov 4 23:01:04 2008 UTC (15 years, 4 months ago) by dbj
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

use an mtree template when building floppies to avoid local uid/gid in image

Revision 1.12.20.2, Sun Oct 5 20:10:15 2008 UTC (15 years, 5 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.12.20.1: +1 -1 lines
FILE REMOVED

Sync with HEAD.

Revision 1.12.20.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:21:12 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.12: +1 -8 lines
Diff to previous 1.12 (colored)

Sync with HEAD.

Revision 1.12.22.1 / (download) - annotate - [select for diffs], Sun May 18 12:29:34 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.12: +1 -8 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

sync with head.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Apr 30 13:10:48 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase
Changes since 1.12: +1 -8 lines
Diff to previous 1.12 (colored)

Convert TNF licenses to new 2 clause variant

Revision 1.9.2.3 / (download) - annotate - [select for diffs], Sun Nov 27 22:45:32 2005 UTC (18 years, 4 months ago) by riz
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.9.2.2: +29 -26 lines
Diff to previous 1.9.2.2 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

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.

Revision 1.9.2.2 / (download) - annotate - [select for diffs], Sun Nov 27 22:45:09 2005 UTC (18 years, 4 months ago) by riz
Branch: netbsd-3
Changes since 1.9.2.1: +17 -1 lines
Diff to previous 1.9.2.1 (colored) to branchpoint 1.9 (colored)

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.

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Mon Sep 19 20:59:41 2005 UTC (18 years, 6 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

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!

Revision 1.12 / (download) - annotate - [select for diffs], Sat Sep 10 18:05:51 2005 UTC (18 years, 6 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-devfs-base, mjf-devfs, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-pf42, mjf-devfs2
Changes since 1.11: +29 -26 lines
Diff to previous 1.11 (colored)

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.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Sep 4 19:29:31 2005 UTC (18 years, 6 months ago) by dsl
Branch: MAIN
Changes since 1.10: +17 -1 lines
Diff to previous 1.10 (colored)

Report the exact number of free bytes in the install floppy images.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Sep 3 20:34:28 2005 UTC (18 years, 6 months ago) by dsl
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

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!

Revision 1.9 / (download) - annotate - [select for diffs], Fri Mar 4 16:01:58 2005 UTC (19 years ago) by dsl
Branch: MAIN
CVS Tags: netbsd-3-base
Branch point for: netbsd-3
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

When a boot floppy overran, the reported excess size was 8k too big.

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Sat Jul 10 13:47:59 2004 UTC (19 years, 8 months ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.7: +6 -10 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

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

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jun 12 18:39:53 2004 UTC (19 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.7: +6 -10 lines
Diff to previous 1.7 (colored)

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

Revision 1.7 / (download) - annotate - [select for diffs], Sun Nov 9 23:44:48 2003 UTC (20 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.6: +12 -12 lines
Diff to previous 1.6 (colored)

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.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Mar 7 09:33:53 2003 UTC (21 years ago) by lukem
Branch: MAIN
Changes since 1.5: +4 -5 lines
Diff to previous 1.5 (colored)

improve calculation to determine number of disks required

Revision 1.5 / (download) - annotate - [select for diffs], Mon Mar 3 14:20:13 2003 UTC (21 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.4: +6 -4 lines
Diff to previous 1.4 (colored)

Report free space for unpadded floppies
(approved by christos)

Revision 1.4 / (download) - annotate - [select for diffs], Sat Dec 21 15:54:49 2002 UTC (21 years, 3 months ago) by lukem
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

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).

Revision 1.3 / (download) - annotate - [select for diffs], Sat May 4 01:34:37 2002 UTC (21 years, 10 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.2: +9 -6 lines
Diff to previous 1.2 (colored)

- 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/*

Revision 1.2 / (download) - annotate - [select for diffs], Wed Apr 17 20:42:34 2002 UTC (21 years, 11 months ago) by tv
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Exit with nonzero status if the -i (installboot) command fails.  (The media
certainly won't be usable in this case.)

Revision 1.1 / (download) - annotate - [select for diffs], Tue Apr 16 04:28:23 2002 UTC (21 years, 11 months ago) by lukem
Branch: MAIN

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.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>