Commit graph

62 commits

Author SHA1 Message Date
wiz
ca3935f19d Avoid null mounting /dev (it needs to be layer-free).
Otherwise, random panics may occur.

Explanation from ad@, patch from Zafer.

Bump to 0.17.
2009-04-11 17:28:16 +00:00
gson
2c0229797b Note the need for options INCLUDE_CONFIG_FILE when using Grub. 2008-05-22 13:26:54 +00:00
xtraeme
b5ae86a07f Switch to 2 clause BSD license now that TNF license has dropped
clause 3 and 4.
2008-04-29 13:48:06 +00:00
xtraeme
935abc224e Remove the hidden stage files only if the iso image was created
successfully.
2008-03-27 21:08:26 +00:00
xtraeme
2222d2fd5b Update to 0.16 (leaf package):
* Introduce the MOUNT_{PACKAGES,PKGSRC,PKGSRCDIST}_DIR options in the
  configuration file, to use null mounts for them. By default neither
  of these directories will be mounted by default.

* Introduce the concept of 'targets done'. If the user tries to issue
  a 'base' target before the 'kernel' target an error message will be
  printed and an appropiate error code returned (just an example, it is
  done for all required targets). This is useful to avoid silly things
  like:

  [mklivecd kernel target was skipped here]

  $ mklivecd base
  $ mklivecd chroot
  $ mklivecd iso

  Obviously the 'iso' target failed because it couldn't find some
  required files.
2008-03-27 20:54:09 +00:00
wiz
f0f4081d20 New sentence, new line. Use Nx. 2007-12-01 20:27:16 +00:00
xtraeme
8c28d6e5f4 Update to 0.15.3:
Remove -nobak from MKISOFS_ARGS, which is not available on newer cdrtools
versions.

Pointed out by Zafer Aydogan, thanks.
2007-07-03 15:45:06 +00:00
hauke
9c3c76433d Only complain about a missing kernel config file if we did actually
_not_ find it.
2007-06-21 12:21:10 +00:00
xtraeme
9951db5e01 Erm... it's KERNEL_VARS not KERNEL_ARGS. 2007-04-12 23:08:35 +00:00
xtraeme
d8c72c71b8 do_conf_reset(): add missing KERNEL_VARS. 2007-04-12 23:07:55 +00:00
xtraeme
bbb2308b64 Fix previous, only check for kernel config and not for the work
directory... which might not be created yet.
2007-04-12 22:39:36 +00:00
xtraeme
4152db6dc3 Do the same for MULTIPLE_KERNELS, check if the kernel is found in
~/.mklivecd before showing informative messages.
2007-04-12 22:31:16 +00:00
xtraeme
8b5d24fdfc * Check if the kernel is available in ~/.mklivecd before showing
informative messages.
* Remove unnecessary checks for USE_GNU_GRUB, now that some options
  are checked to have correct values.
* Misc cleanups.
2007-04-12 22:26:19 +00:00
xtraeme
202a7895b1 Remove a check for USE_GNU_GRUB, now that there's a common function
to test the value in options.
2007-04-11 14:40:44 +00:00
xtraeme
1305aaeb3c * Check if the option is set, and error out if not.
* Added PERSONAL_CONFIG to the yesno options checks.
2007-04-11 14:31:35 +00:00
xtraeme
82b06fb2a0 Extra bonus for 0.15.1: check value in options accepting 'yes' or 'no'
values (case insensitive), show an error message if the value
is not accepted and exit.
2007-04-11 14:22:26 +00:00
xtraeme
bd3032f9f6 Update to 0.15.1:
* Changed informative messages to "MKLIVECD>".
* Improved all messages.
* Fix problems with MULTIPLE_KERNELS and USE_GNU_GRUB, previously
  if they were not defined the build continued or failed silently.
* Added more error checks.
2007-04-11 11:51:35 +00:00
xtraeme
d567daad26 Another bonus for 0.15: rename the base tarballs to ramfs_foo, because
mfs is not an appropiate name anymore.
2007-04-10 20:52:01 +00:00
xtraeme
96dc7f7171 Extra bonus for 0.15: if there's a set already found in BASE_SETS_DIR
downloaded by the fetch target, ask interactively to the user if wants
to download again or not.
2007-04-10 03:05:49 +00:00
xtraeme
2a0957da56 Not needed anymore. 2007-04-10 02:24:08 +00:00
xtraeme
11dd81f2e2 Update to 0.15:
* Added a new target 'fetch' that will fetch the specified sets from
  the specified URL.
* Fixed permissions on /tmp. (Reported by Zafer Aydogan).
* Renamed BOOTKERN to KERNEL_CONFIG, because it's more appropiate.
* Fix a problem with options accepting a 'yes' argument, now
  the value can be case insensitive.
* Remove the example kernel config, too old and useless.
* Use mktemp(1) to create the temporary file.
* Updated manpage with reality.
2007-04-10 02:23:34 +00:00
xtraeme
bf88de65e3 Bump copyright year. 2007-03-10 00:01:23 +00:00
xtraeme
65dac14ddd Update to 0.14.5:
This version adds support for NetBSD/amd64 with bootxx_cd9660, because
grub does not work in 64bit mode, so I've disabled the USE_GNU_GRUB
and GRUB_FILES_DIR options if it's amd64.

Enjoy!
2007-03-09 23:51:50 +00:00
xtraeme
ccb6d5f49f Update to 0.14.4:
Fixed a bug in the MULTIBOOT case with kernels like GENERIC.MPACPI.
These kind of kernels do not define "options MULTIBOOT" because
they include another config file that has defined the option.

Rather than using grep -q MULTIBOOT on the kernel config file,
use config(1) -x <kernel> and check if MULTIBOOT is set.
2006-12-02 01:04:47 +00:00
wiz
c59a21b4c4 Sort sections. New sentence, new line. 2006-10-14 07:42:25 +00:00
xtraeme
85fbd514cc Update to 0.14.3 (sigh):
* Fix a problem in the 'iso' target removing permissions in all files.
* Don't do the MULTIBOOT fix if the kernel is not available in WORKDIR.
2006-10-13 16:39:53 +00:00
xtraeme
00b6b7f418 Update to 0.14.2:
* Fix typos in mklivecd.sh that prevented to initialize /home
  and /usr/pkg/etc directories correctly.
2006-10-13 14:58:34 +00:00
xtraeme
0250871316 * Fix typo in mklivecd(8).
* In the clean target check for $packages_mntstat too.
2006-10-13 13:07:12 +00:00
xtraeme
80e47f56a9 Update to 0.14.1:
* Don't modify menu.lst if it's not available.
* Update some comments.
2006-10-12 15:03:51 +00:00
xtraeme
b20cb1e98f Fix comment. 2006-10-08 19:15:02 +00:00
xtraeme
f2c8f2d36b Update to the long awaited 0.14 version with the following changes:
* Support for tmpfs, enabled via MNT_RAMFS_{ARGS,CMD}.

To use tmpfs and all the available RAM in the machine, use the
following lines in your configuration file:

	MNT_RAMFS_CMD="mount_tmpfs"
	MNT_RAMFS_ARGS="tmpfs"

By default it will default to MNT_RAMFS_CMD="mount_mfs" and
MNT_RAMFS_ARGS="-s 128m swap" to maintain compatibility with NetBSD
versions < 4.0.

* Support to mount a specific PACKAGES directory via PACKAGESDIR
  in the configuration file.
* Added CDRECORD_BIN and MKISOFS_BIN to specify alternative binaries.
* Remove MNT_FOO_ARGS, mount_null(8) is used on the root memory filesystem
  to mount all dependent directories.
* Fix booting with GNU GRUB and MULTIBOOT on >=4.0.

Please upgrade to this version and let me know if you are not
happy...
2006-10-08 19:08:38 +00:00
xtraeme
342955bb02 Update to 0.13.2:
* Update for NetBSD -current: the CD-ROM ISO9660 bootloader is
	  installed as 'bootxx_cd9660'.
2005-10-08 23:20:10 +00:00
xtraeme
87a353adb6 Update to 0.13.1
Changes:

	* Looks like we'll have to mount the mfs_var tarball
	  before mounting the vnd(4) var_db_pkg compressed image.
	* Remove all dirs/files from /usr and /var/db/pkg, saves
	  some space.
2005-08-13 23:35:44 +00:00
xtraeme
3ee187be18 Update to 0.13.0
Changes:

	* New option added: VND_COMPRESSION. To enable vnd(4)
	  compression on /usr and /var/db/pkg (at the moment).
	* Fixed a problem with -k and USE_GNU_GRUB=yes,
	  building a kernel with -k overwrites the "menu.lst"
	  file.
	* Only copy /etc/X11/XF86Config to $ISODIR when there
	  is not a previous file, fixes PR pkg/30889.
	* Renamed the rc.d script mfs_rcd to livecd, because
	  it's not only mfs anymore.

Finally we can have kde-3.4.2 with NetBSD in a live CD-ROM:

416M    netbsd-3.99.7_kde-3.4.2.iso

Enjoy.
2005-08-11 20:48:55 +00:00
xtraeme
805b5f9551 Update to 0.12.0.
Changes:

	o cdboot support on NetBSD >=4.0 (-current).
	o Availability to choose the bootloader through a new option:
	  USE_GNU_GRUB (by default yes).
	o When using GRUB as the bootloader, it is possible to build
	  and install multiple kernels with the target "kernel", it
	  will install the kernels into the ISO image and the menu.lst
	  file will be modified automatically, see MULTIPLE_KERNELS
	  (mklivecd(8)).
	o Various misc fixes.
	o Now /dev uses optimum values for not wasting space.
	o Added -k flag, that accepts a kernel as argument. To build
	  an additional kernel without looking at the config file.
2005-07-29 12:13:01 +00:00
xtraeme
7577a66f43 Update to 0.11
* grub changed the directory for the stage files, this was
	  changed in 0.96, require at least this version.
	* Don't remove the work directories when the pkgsrc or
	  distfiles are still mounted in the clean target.

Patch submitted by Mike M. Volokhov on tech-pkg@.
2005-03-30 14:23:04 +00:00
xtraeme
bf9ba7e5fe Copy the stage{1,2} GRUB files into $ISODIR/grub as well
(required to boot from any existing partition on the disk, missed
in previous).

Bump PKGREVISION.
2005-03-16 16:37:37 +00:00
xtraeme
f435db0804 Update to 0.10:
* Copy all stage 1.5 files from GRUB into $ISODIR/grub/, useful to boot
  from any existing partition in the disk.
* Show usage when the target is not valid.
2005-03-16 05:31:23 +00:00
xtraeme
5121e7566f Note that the example kernel file was based on the 2-0 branch,
bump date for that.
2005-01-11 02:25:21 +00:00
xtraeme
d50910ff17 Update to 0.9, changes:
* Don't overwrite $ISODIR/etc/profile every time chroot target is invoked,
  provide defaults only the first time we run it.
* Ask interactively to the user if he/she wants to remove the current iso
  image found on $BASEDIR/$IMAGE_NAME and create a new one if that was
  selected.
2005-01-11 02:08:53 +00:00
wiz
5e82ccba0e Add EXAMPLES section with the minimal steps for creating
your own Live CD. Text by xtraeme@, I just formatted it.
2004-11-04 17:01:11 +00:00
xtraeme
74ac597ea9 Update sysutils/mklivecd to 0.8.
Changes:

* Added two new options: PKGSRCDISTDIR and CHROOT_SHELL, to specify
  distfiles directory and the shell to be used in the `chroot' target.
* Remove MESSAGE file, it's useless right now... because
  the `menu.lst' file is created when the `kernel' target has been
  invoked, with default values, ready to boot.
* Replace another `j' tar(1) flag with `z'.
2004-11-04 16:29:55 +00:00
xtraeme
ab02e46232 Update sysutils/mklivecd to 0.7.
Changes:

* s/DEPENDS/BUILD_DEPENDS/ for grub and cdrecord.
* Don't use "j" flag in tar(1), it is not available on NetBSD 1.6.x,
 use "z" flag instead.
* Replace harcoded tar with @TAR@ in the scripts.
* s/.tbz/.tgz/g

Thanks to Raoul Bhoedjang for his comments in private email.
2004-10-29 17:47:30 +00:00
uebayasi
4000ef7084 Other packages' commands may not be found in ${PREFIX} nowadays. Fix it. 2004-05-20 02:11:41 +00:00
xtraeme
15fa7f8f56 .Nx shouldn't have any argument in the same line (thanks to snj@). 2004-05-02 02:33:43 +00:00
xtraeme
dc3160c480 Update sysutils/mklivecd to 0.6.
Changes:

	o Default location for kernels is /boot/grub.
	o Improved messages.
	o Fix wrong permissions in $ISODIR.
2004-05-01 10:46:10 +00:00
xtraeme
925ada68c8 Simplify message. 2004-04-27 21:12:43 +00:00
xtraeme
b1259d81e6 oops, forgot to add $BOOTDIR in the `iso' target. 2004-04-27 16:33:12 +00:00
xtraeme
60f113caba Another grub->boot/grub change. 2004-04-27 16:17:26 +00:00
xtraeme
dbf3afa447 s/grub/boot\/grub/g; minor fixes. 2004-04-27 16:10:46 +00:00