Commit Graph

166 Commits

Author SHA1 Message Date
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