Commit Graph

167 Commits

Author SHA1 Message Date
Otavio Salvador ffa2568b55 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.
2011-03-09 18:35:58 +01:00
Daniel Baumann bc23f61130 Removing unintendet set -x. 2011-03-09 18:35:57 +01:00
Daniel Baumann f224359bb1 Working arround aptitude behaviour of removing packages rather than to installing missing depends when using initramfs generator from local-packages. 2011-03-09 18:35:57 +01:00
Daniel Baumann 68be48c28e Correcting wrong installation attempt of initramfs generator from local-packages. 2011-03-09 18:35:56 +01:00
Daniel Baumann c87301732b Installing initramfs generator from local-packages, if available. 2011-03-09 18:35:54 +01:00
Daniel Baumann 74b2c5778d Renaming mini flavour to stripped to avoid confusion, thanks to Fathi Boudra <fabo@debian.org> and Ben Armstrong <synrg@debian.org>. 2011-03-09 18:35:54 +01:00
Daniel Baumann 58e7e813be Fixing typo, thanks to Fathi Boudra <fabo@debian.org>. 2011-03-09 18:35:51 +01:00
Daniel Baumann 324621f3f4 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>. 2011-03-09 18:35:48 +01:00
Chris Lamb 577d29afa8 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).
2011-03-09 18:35:44 +01:00
Chris Lamb e0ad886393 Re-add guards against bogus 'for' shell expansion. 2011-03-09 18:35:43 +01:00
Chris Lamb 2ebe770e41 Refactor d-i udeb handling with better failure mode (Closes: #444565) 2011-03-09 18:35:42 +01:00
Chris Lamb cf3d97cd1f Use Install_file for udebs. 2011-03-09 18:35:41 +01:00
Daniel Baumann 342d2870eb Consistently using the pipe as seperator in sed commands now. 2011-03-09 18:35:39 +01:00
Chris Lamb 042dfa1ee0 Move installing binary.deb/archives/*.deb. 2011-03-09 18:35:37 +01:00
Chris Lamb 28d856f6f1 Remove conditionals, as an expansion never 'fails': it just
won't copy any files.
2011-03-09 18:35:36 +01:00
Chris Lamb 295542614d Refactor installing file to binary/pool/main/./.* functionality. 2011-03-09 18:35:35 +01:00
Chris Lamb 716d31d587 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.
2011-03-09 18:35:34 +01:00
Chris Lamb 6a9d30b2ae Implement -v/--version and -h/--help in lh_clean. 2011-03-09 18:35:31 +01:00
Chris Lamb 94e44ce69a Implement -u/--usage function in lh_clean (Closes: #454553) 2011-03-09 18:35:28 +01:00
Daniel Baumann d725d86274 Don't fail if resolv.conf is a symlink, thanks to David Madore <david.madore@ens.fr> (Closes: #457595). 2011-03-09 18:22:29 +01:00
Daniel Baumann 969ac8f07f Switching to GPL3+. 2011-03-09 18:22:29 +01:00
Daniel Baumann 3818b02197 Addjusting lh helper to be called from lh_local. 2011-03-09 18:22:29 +01:00
Daniel Baumann ac8753ea3f Adding lh_local based on the idea from Tzafrir Cohen <tzafrir.cohen@xorcom.com>. 2011-03-09 18:22:29 +01:00
Daniel Baumann ff9af0f960 Fixed incomplete fdisk parameter list in lh_config --help. 2011-03-09 18:22:29 +01:00
Daniel Baumann de1698708d Also removing manpage cache in cleanup. 2011-03-09 18:22:29 +01:00
Daniel Baumann e5ac7fb714 Disabling global arguments in lh_clean (Closes: #451960). 2011-03-09 18:22:29 +01:00
Daniel Baumann 76c75b83c5 Moving sanity check in lh_clean to the earliest possibility. 2011-03-09 18:22:29 +01:00
Daniel Baumann 7ace089629 Switching lh_clean to proper command line arguments. 2011-03-09 18:22:29 +01:00
Daniel Baumann cbcb382f13 Fixing wrong parted call. 2011-03-09 18:22:29 +01:00
Daniel Baumann cd2618e5d5 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>. 2011-03-09 18:22:29 +01:00
Daniel Baumann 01d34e6d1d Adding binary filesystem option, currently only supporting fat16 and fat32. 2011-03-09 18:22:29 +01:00
Daniel Baumann c59670779a Speeding up the dd call, thanks to Peter Skogstroem <peter.skogstrom@bitrunner.com>. 2011-03-09 18:22:29 +01:00
Daniel Baumann c4ba9e6be8 Do really not create the filesystem with parted. 2011-03-09 18:22:29 +01:00
Daniel Baumann 44a36ecc49 Do not create the filesystem with parted. 2011-03-09 18:22:29 +01:00
Daniel Baumann ec72b41c82 Mounting pseudo filesystems before creating binary images in non-chrooted builds. 2011-03-09 18:22:29 +01:00
Daniel Baumann c6236a0794 Moving lh_losetup into an internal function, avoiding helper failure with return value due to new trap. 2011-03-09 18:22:29 +01:00
Daniel Baumann b5dc203126 Fixing fstab handling. 2011-03-09 18:22:29 +01:00
Daniel Baumann de1e32df4c Fixing some coding style issues. 2011-03-09 18:22:29 +01:00
Daniel Baumann 1324f6e13b Adding 'remove' case, which is in between of all and purge. 2011-03-09 18:22:29 +01:00
Daniel Baumann 0c2e079c10 Outputting an own message when having more than one case in a helper, instead of a global one. 2011-03-09 18:22:29 +01:00
Daniel Baumann 0e2e348b53 Fixed a few bashisms, thanks to Trent W. Buck <trentbuck@gmail.com>. 2011-03-09 18:22:29 +01:00
Daniel Baumann 02a9e71667 Adding option to disable md5sum generation. 2011-03-09 18:22:29 +01:00
Daniel Baumann 8321653cb3 Adding check to detect gnu-fdisk and using the original fdisk, thanks to Peter Skogström <peter.skogstrom@bitrunner.com> for the report. 2011-03-09 18:22:29 +01:00
Daniel Baumann b47d0c480d 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>. 2011-03-09 18:22:29 +01:00
Daniel Baumann 1ef63a83da Adding some more fakeroot related fixes from An-Cheng Huang <ancheng@vyatta.com>. 2011-03-09 18:22:29 +01:00
Daniel Baumann 66e6a4c14a Fixing typing error, thanks to An-Cheng Huang <ancheng@vyatta.com>. 2011-03-09 18:22:29 +01:00
Daniel Baumann 2a90796447 Making umount calls check if they are actually necessary. 2011-03-09 18:22:29 +01:00
Daniel Baumann 77dba7d248 Adding generic lh wrapper. 2011-03-09 18:22:29 +01:00
Daniel Baumann b17568a395 Added warning about etch compatibility of lh_config options. 2011-03-09 18:22:29 +01:00
Daniel Baumann 532f4e281f Fixing some coding style issues. 2011-03-09 18:22:28 +01:00