Commit Graph

227 Commits

Author SHA1 Message Date
Daniel Baumann fd315529e0 Renaming extra bootstrap indices to chroot. 2008-02-21 20:46:49 +01:00
Daniel Baumann fa3c63f5dc Adding apt/aptitude options.
By using APT_OPTIONS and APTITUDE_OPTIONS in config/common,
one can manipulate the default options wich is made to each
and every apt and aptitude call.
2008-02-21 20:03:57 +01:00
Otavio Salvador 20ffe176ed lh_binary_rootfs: add support to generate jffs2 filesystem 2008-02-20 21:15:50 -03:00
Otavio Salvador 774aebab84 lh_binary_encryption: add jffs2 as not supported filesystem 2008-02-20 21:15:50 -03:00
Otavio Salvador 5cdd8df091 lh_config: add jffs2 in supported filesystems 2008-02-20 21:15:50 -03:00
Otavio Salvador b6149744e3 lh_source_debian: add mtd-tools since it provides mkfs.jffs2 application 2008-02-20 21:15:49 -03:00
Otavio Salvador ff9eb4e41f chroot: don't fail if /dev/pts is already mounted 2008-02-20 10:11:22 -03:00
Otavio Salvador 92cd4a1daa binary: do not fail if parameters.txt isn't available 2008-02-15 16:14:30 -02:00
Daniel Baumann 03783def4b Fixing typo. 2008-02-13 10:20:42 +01:00
Otavio Salvador 7d2d532f70 bootstrap: use minbase flavour when LH_PACKAGES_LISTS is set to minimal
Since debootstrap 1.0.8 there's a variant called minbase that installs
just essentials packages so base's size is greatly reduced. Use this
variant when producing reduced images.
2008-02-07 18:34:25 -02:00
Otavio Salvador c7cbfa0754 bootstrap: adds support to debootstrap 1.0.7
New debootstrap has change the scripts to /usr/share since they're
architecture independent code. The support for it has been added
however it fallback to /usr/lib to keep backward compatibility.
2008-02-07 15:13:45 -02:00
Daniel Baumann a8998d70d9 Removing unintendet set -x. 2008-01-18 09:52:04 +01:00
Daniel Baumann a0e8e45a4f Working arround aptitude behaviour of removing packages rather than to installing missing depends when using initramfs generator from local-packages. 2008-01-18 09:51:07 +01:00
Daniel Baumann 84d7dc0ccd Correcting wrong installation attempt of initramfs generator from local-packages. 2008-01-18 09:23:32 +01:00
Daniel Baumann 5b957702d4 Installing initramfs generator from local-packages, if available. 2008-01-17 20:54:10 +01:00
Daniel Baumann 0d0e8bb268 Renaming mini flavour to stripped to avoid confusion, thanks to Fathi Boudra <fabo@debian.org> and Ben Armstrong <synrg@debian.org>. 2008-01-17 18:15:11 +01:00
Daniel Baumann aa6643d957 Fixing typo, thanks to Fathi Boudra <fabo@debian.org>. 2008-01-16 16:50:42 +01:00
Daniel Baumann 2576eed731 Checking for /sys/class rather than /sys/kernel, avoids problem when running under OpenVZ which doesn't have sys/kernel, thanks to Takeshi Yaegashi <yaegashi@debian.org>. 2008-01-16 10:24:23 +01:00
Chris Lamb 2ae4b3bf37 Re-order hooks such that local hooks are executed first. (Closes: #453360)
Some non-local hooks clean the chroot too much, resulting in the
local hooks having to perform identical clean-up tasks (for example,
downloading a package).

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-01-15 19:51:37 +00:00
Chris Lamb c84e3c096b Re-add guards against bogus 'for' shell expansion.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-01-15 19:47:50 +00:00
Chris Lamb 73acaf73d3 Refactor d-i udeb handling with better failure mode (Closes: #444565)
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-01-15 19:45:07 +00:00
Chris Lamb 1f436f7483 Use Install_file for udebs. 2008-01-15 19:42:28 +00:00
Daniel Baumann 948730f93a Consistently using the pipe as seperator in sed commands now. 2008-01-15 08:25:29 +01:00
Chris Lamb 52e7c9732d Move installing binary.deb/archives/*.deb.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-01-15 02:47:29 +00:00
Chris Lamb 5b396d4fe7 Remove conditionals, as an expansion never 'fails': it just
won't copy any files.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-01-15 02:44:41 +00:00
Chris Lamb 13e554b150 Refactor installing file to binary/pool/main/./.* functionality.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-01-15 02:43:42 +00:00
Chris Lamb f3f9239110 Don't put more than one glob on a 'for' line, unless they are guaranteed
to succeed, otherwise the second one is not expanded and "*.deb" (for
example) is used literally.

This patch expands (haha) each "for" loop into it's own.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-01-15 02:41:10 +00:00
Chris Lamb c837a9ebb4 Implement -v/--version and -h/--help in lh_clean.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-01-15 00:05:51 +00:00
Chris Lamb c833147b8d Implement -u/--usage function in lh_clean (Closes: #454553)
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-01-14 23:43:51 +00:00
Daniel Baumann fefba74183 Don't fail if resolv.conf is a symlink, thanks to David Madore <david.madore@ens.fr> (Closes: #457595). 2007-12-23 21:26:01 +01:00
Daniel Baumann 042354c7df Switching to GPL3+. 2007-12-22 09:45:48 +01:00
Daniel Baumann c3123302c9 Addjusting lh helper to be called from lh_local. 2007-12-22 09:36:54 +01:00
Daniel Baumann f40522b7d8 Adding lh_local based on the idea from Tzafrir Cohen <tzafrir.cohen@xorcom.com>. 2007-12-22 09:34:38 +01:00
Daniel Baumann 1be409ac5f Fixed incomplete fdisk parameter list in lh_config --help. 2007-11-21 11:19:38 +01:00
Daniel Baumann 6b444f8348 Also removing manpage cache in cleanup. 2007-11-20 11:23:26 +01:00
Daniel Baumann 87426f6165 Disabling global arguments in lh_clean (Closes: #451960). 2007-11-19 17:55:28 +01:00
Daniel Baumann 7e6e498ce7 Moving sanity check in lh_clean to the earliest possibility. 2007-11-18 16:15:43 +01:00
Daniel Baumann fefbe2259e Switching lh_clean to proper command line arguments. 2007-11-18 16:14:50 +01:00
Daniel Baumann 964eab423a Fixing wrong parted call. 2007-11-18 11:33:46 +01:00
Daniel Baumann d26e57998f Adding an upgrade and dist-upgrade to lh_chroot_sources, so that security updates gets pulled into the base system. Thanks to Kai Hendry <hendry@iki.fi>. 2007-11-18 11:09:55 +01:00
Daniel Baumann ec0d5cd48b Adding binary filesystem option, currently only supporting fat16 and fat32. 2007-11-16 23:01:03 +01:00
Daniel Baumann 702de9d2ed Speeding up the dd call, thanks to Peter Skogstroem <peter.skogstrom@bitrunner.com>. 2007-11-15 10:11:56 +01:00
Daniel Baumann 2e51237e12 Do really not create the filesystem with parted. 2007-11-14 23:04:24 +01:00
Daniel Baumann 6edcf23b29 Do not create the filesystem with parted. 2007-11-14 23:01:44 +01:00
Daniel Baumann 7b8a85422a Mounting pseudo filesystems before creating binary images in non-chrooted builds. 2007-11-14 10:13:58 +01:00
Daniel Baumann 94c3ca731a Moving lh_losetup into an internal function, avoiding helper failure with return value due to new trap. 2007-11-14 09:55:50 +01:00
Daniel Baumann 769618067d Fixing fstab handling. 2007-11-13 22:41:08 +01:00
Daniel Baumann e743c23cd7 Fixing some coding style issues. 2007-11-13 13:49:41 +01:00
Daniel Baumann 2e35367c01 Adding 'remove' case, which is in between of all and purge. 2007-11-13 13:08:51 +01:00
Daniel Baumann 17e172bbdf Outputting an own message when having more than one case in a helper, instead of a global one. 2007-11-13 12:49:43 +01:00
Daniel Baumann c8f66ebe90 Fixed a few bashisms, thanks to Trent W. Buck <trentbuck@gmail.com>. 2007-11-13 09:00:16 +01:00
Daniel Baumann 9ad970aca2 Adding option to disable md5sum generation. 2007-11-12 23:00:48 +01:00
Daniel Baumann b0282f5d26 Adding check to detect gnu-fdisk and using the original fdisk, thanks to Peter Skogström <peter.skogstrom@bitrunner.com> for the report. 2007-11-12 22:43:28 +01:00
Daniel Baumann 4c91fd7d96 Adding a check to see if user is running lh_clean from a sane location (i.e. not config/), thanks to Kai Hendry <hendry@webconverger.com>. 2007-11-12 22:31:06 +01:00
Daniel Baumann fb1e3ce43a Adding some more fakeroot related fixes from An-Cheng Huang <ancheng@vyatta.com>. 2007-11-11 23:05:55 +01:00
Daniel Baumann 13e39acb9f Fixing typing error, thanks to An-Cheng Huang <ancheng@vyatta.com>. 2007-11-11 23:00:43 +01:00
Daniel Baumann be5c114a90 Making umount calls check if they are actually necessary. 2007-11-11 21:33:43 +01:00
Daniel Baumann cd101e9220 Adding generic lh wrapper. 2007-11-11 14:45:34 +01:00
Daniel Baumann 0408e7ebba Added warning about etch compatibility of lh_config options. 2007-11-11 14:14:25 +01:00
Daniel Baumann 8635931e79 Fixing some coding style issues. 2007-11-11 13:57:11 +01:00
Daniel Baumann 1d728dcb3e Allowing LH_BOOTSTRAP_FLAVOUR to be minimal or mini. 2007-11-11 13:02:32 +01:00
Daniel Baumann 174bc9ede5 Evaluating local arguments befor setting the defaults (Closes: #444985). 2007-11-11 10:30:40 +01:00
Daniel Baumann cfbadf00dc Adding option to allow building in fakeroot/fakechroot environment, thanks to An-Cheng Huang <ancheng@vyatta.com>. 2007-11-10 18:39:49 +01:00
Daniel Baumann 51cfe60fc6 Using shell redirection to truncate rather than additional commands/forks/files, thanks to Justin Pryzby <jpryzby@quoininc.com>. 2007-11-10 15:40:53 +01:00
Daniel Baumann 7cacae2d94 Renaming live-failsafe boot target to livefailsafe (Closes: #450576). 2007-11-10 15:23:27 +01:00
Jesse Hathaway 27e3585e7a add new option --syslinux-menu to enable syslinux menu
added a new syslinux menu splash screen, I'm not an artist
but I think it is better than the generic splash which was
already included. Also added the svg file if anyone wants
to make any changes.
2007-11-02 09:34:00 -04:00
Daniel Baumann a0fcb117a0 Corrected wrong path, thanks to Ben Armstrong <synrg@debian.org>. 2007-11-01 17:52:12 +01:00
Jesse Hathaway b2068cd691 fix isolinux when booting multiple kernel flavours 2007-10-31 16:20:57 -04:00
Jesse Hathaway 890801563d fix syslinux timeout option
change MILISECONDS to SECONDS. Syslinux actually uses
tenths of seconds not milliseconds, but it seems
unnecessary to expose this to the user. Fix templates
to only specify the timeout once.
2007-10-31 14:43:26 -04:00
Jesse Hathaway e7100f46b8 add /etc/adjtime to list of writable files in exposed root mode 2007-10-31 10:20:15 -04:00
Jesse Hathaway 800687e9ba allow basename of net-root-path to be binary
This is convenient for testing as you can directly export
the build directory, rather than untarring the net image
in another location.
2007-10-31 10:20:15 -04:00
Jesse Hathaway ae8cb3bce0 add force flag when removing /etc/mtab for exposedroot mode
cdebootstrap does not create /etc/mtab
2007-10-31 10:20:15 -04:00
Daniel Baumann f7777a1712 Adding lh_chroot_devpts. 2007-10-31 11:20:03 +01:00
Daniel Baumann 15f9200589 Fixing indenting. 2007-10-31 11:10:05 +01:00
Jesse Hathaway bb08fc8d1e add new option to mount cow device on nfs volume
At the moment this only works with the root volume
on nfs as well. If we add a switch to configure the
network early in the boot process then this option
could be made available for other root mediums. This
option works reliably on the latest kernel 2.6.23.1
On earlier kernels I experienced frequent oopses.
2007-10-31 11:06:58 +01:00
Daniel Baumann eaadafff8e Fixing typing error (wrong variable name). 2007-10-31 10:49:38 +01:00
Daniel Baumann e4410130ab Fixing typing error (missing paranthese). 2007-10-30 09:52:38 +01:00
Daniel Baumann d29dd22a73 Respecting LH_BOOTSTRAP_FLAVOUR (Closes: #448034). 2007-10-30 06:35:35 +01:00
Alex Owen c71e0d5517 fix lh_chroot_sources to actually install *.deb from config/chroot_sources 2007-10-28 18:22:33 -02:00
Maarten ter Huurne b01e3ff769 Added feature to exclude paths from the root filesystem.
To make the root filesystem as small as possible, it can be useful to exclude
certain files or directories. This is now possible by using the file
config/binary_rootfs/exclude, which contains a whitespace separated list of
file paths to exclude; wildcards are allowed. These paths are removed from the
chroot copy before the root filesystem is built.
2007-10-28 03:14:42 +01:00
Maarten ter Huurne c7e50a404e Remove ".img" from kernel image file name.
When an ISO is created with the kernel image file name ending in ".img", the
ISO will not boot. In Qemu, the following error will be shown:

        FATAL: Int13 eltorito call with AX=4C00

This means a non-implemented BIOS entry was called. In VMware and on real
hardware there is a different error message:

        Cannot load disk image (invalid file)?

Removing the ".img" part of the file name solves this.
2007-10-27 20:38:15 +02:00
Jesse Hathaway 00aa1d0c28 add exposedroot option which exposes the root fs as ro
This option allows you to expose the root read only.  Using
this option a person could upgrade the root filesystem or
add packages without requiring the user to reboot. The root
filesystem could be kept on an nfs volume or some other
persistent medium. Multiple clients could then be booted off
the same root fs. I used LTSP as a template to determine which
directories to make rw.
2007-10-24 13:36:42 -04:00
Daniel Baumann 24767fd736 Removing mkisofs support. 2007-10-19 12:54:26 +02:00
Daniel Baumann 979cd28cc4 Removing ubuntu support. 2007-10-19 12:45:57 +02:00
Daniel Baumann ce0c2b4e64 Adding lh_binary_local-packageslists. 2007-10-18 22:28:54 +02:00
Otavio Salvador b1d10e6a28 lh_binary_syslinux: always put splash image as splash.{rle,png} to avoid filename issues 2007-10-17 13:55:08 -02:00
Otavio Salvador 763a576d88 lh_binary_syslinux: check for ${INITFS} and not ${LH_INITRAMFS} to detect wrong path 2007-10-17 13:53:54 -02:00
Jesse Hathaway 293ef95b91 lh_binary_syslinux: fix usb-hdd etch images
I did not realize that the syslinux boot methods,
iso, net, & hdd do not have feature parity for any
given version. As per old comments etch syslinux
v3.31 does not support sub directories on FAT images
2007-10-17 13:53:49 -02:00
Daniel Baumann e98b7dda9d Adding support for a local /etc/apt/preferences file in config/chroot_apt/preferences. 2007-10-14 21:47:35 +02:00
Jesse Hathaway c5f302869e readd support for booting etch via syslinux 2007-10-14 11:33:10 -04:00
Jesse Hathaway 4314b13356 Unify syslinux code, so that pxelinux isolinux & usb-hdd
share more code.

Change pxelinux directory setup to match debian installer

Change syslinux templates to use {$VAR} syntax so the
templates are easier to read

Remove etch support for syslinux, since INCLUDE syntax
is not available in etch syslinux v3.31
2007-10-14 11:32:43 -04:00
Daniel Baumann f712678141 Adding check to fail if a cross build is started (Closes: #444669, #444670). 2007-10-10 11:39:55 +02:00
Daniel Baumann 0a3c459b6a Fixing consistency error. 2007-10-09 22:50:35 +02:00
Otavio Salvador 883594ed64 syslinux: fix usb-hdd templates coping 2007-10-09 13:04:56 -03:00
Otavio Salvador 4d6271dddb syslinux: properly change timeout and do not fail if help files do not exists 2007-10-09 10:28:05 -03:00
Otavio Salvador 9b189a6255 syslinux: fix usb-hdd entries to use menu.cfg file 2007-10-08 17:43:48 -03:00
Otavio Salvador 30fb0c2272 fix version guessing using proper evaluation 2007-10-08 17:45:36 +02:00
Otavio Salvador e1f157ee2c iso: use -allow-multidot option when calling genisoimage
To properly support syslinux menus we need to provide fonts (specially
when using accents and like) and those files are usually found on
systems using multiple dots on their filenames (e.g iso01.f14.psf) and
then makes sense to support this by default or our users can spent _a
lot_ of time to sort this kind of problem out.

While doing it, the duplicated command line has been removed and code
changed to avoid this duplication making future changes need to touch
just one place.
2007-10-08 10:14:38 +02:00
Otavio Salvador aed8d437ac syslinux: force latin1 encoding on texts used for labels
syslinux cannot handle utf-8 encoding and then proper encoding needed
to be enforced while printing the label texts.
2007-10-08 10:14:30 +02:00
Otavio Salvador c5a9b5a6c3 bootstrap: add support to include and exclude packages
To allow better customization of resulting system, support to include
and exclude packages of base system has been added. It has been
included for debootstrap and cdebootstrap helpers.
2007-10-08 10:14:24 +02:00