Chris Lamb
c70412bcfa
lh_binary_debian-installer: Remove "local"-oriented bashisms
...
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-03-22 18:05:42 +00:00
Chris Lamb
9e6c04702f
lh_chroot_linux-image: Install dependencies differently when using aptitude
...
We must use "aptitude install <pkgname>" to install dependencies of a
dpkg-installed <pkgname>, or aptitude's resolver will remove it. apt-get
does not have this "feature".
This was causing a problem when using a custom versions of live-initramfs
as they would be removed, causing a boot failure.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-03-22 02:44:18 +00:00
Chris Lamb
9321c45188
lh_binary_debian-installer: Don't use --no-clobber for downloading files
...
Using --no-clobber at the same time as -O<file> results in <file> being
created with no contents, which was resulting in (broken) zero-byte d-i
kernels and initrds.
The patch is simple -- simply remove --no-clobber: wget -O<file> <url> will always download <url> to <file>, regardless of how
many times it is run.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-03-22 01:32:11 +00:00
Chris Lamb
cf25064250
lh_binary_debian-installer: Only create package pools when necessary
...
There is no need to create a package pool when creating a netboot Debian
Live image or when the LH_DEBIAN_INSTALLER is set to "businesscard".
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-03-22 01:31:42 +00:00
Chris Lamb
762613f277
lh_binary_debian-installer: Re-enable d-i on netboot images
...
This patch also modifies the configuration logic to ensure that setting
LH_DEBIAN_INSTALLER="enabled" whilst creating a netboot image will install
the netboot variety of d-i.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-03-22 01:30:55 +00:00
Daniel Baumann
e994ff8771
Correcting wrong logic on handling secure apt.
2008-03-11 17:32:03 +01:00
Daniel Baumann
a955c29e10
Fixing wrong debian-installer auto target configuration.
2008-03-09 13:34:41 +01:00
Daniel Baumann
92a0b19dc8
Re-adding quiet on all d-i install targets in post-etch, except expert (and keeping Chris fixed quiet handling).
2008-03-09 09:58:44 +01:00
Chris Lamb
206f3b3f21
Don't append 'quiet' kernel parameter in rescue modes
...
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-03-09 09:56:19 +01:00
Chris Lamb
8a19cbfff1
Ensure syslinux entry names match templates and standard d-i names
...
This patch alters the syslinux labels to follow the "expert" and
"expertgui" style in favour of "TextExpert" and "GUIExpert".
This makes the names match Live Helper's syslinux templates, as well as the
more typical d-i installations and numerious sources that claim that one
should "just type 'expert' at the syslinux prompt", etc.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-03-09 09:56:10 +01:00
Daniel Baumann
ab336ba97e
Updating copyright years to 2008.
2008-03-06 16:43:00 +01:00
Daniel Baumann
cc2cf994d4
Also handling ext3 in lh_binary_rootfs, thanks to Bas Wijnen <wijnen@debian.org> ( Closes : #468902 ).
2008-03-02 11:12:02 +01:00
Bas Wijnen
dd6a5d408b
Making usb-hdd images large enough ( Closes : #468855 ).
...
When building a very minimal live system on a usb-hdd target, the generated
image is too small. A very minimal system is smaller than 50MB, and so this is
the same as DU_DIM for such a system. This is too small. Unconditionally adding
one solves the problem.
2008-03-02 08:24:59 +01:00
Chris Lamb
931881f27a
Use ${*} instead of ${@} for checking for no arguments in lh_clean.
...
${@} expands to "<arg1>" "<arg2>" ... etc., which causes the -z test to
encounter too many arguments and thus fail with an error.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2008-03-02 01:00:38 +00:00
Daniel Baumann
522c2455bc
Adding temporary hack to remove fstab when using live-installer.
2008-03-01 14:43:47 +01:00
Daniel Baumann
2e50db26fd
Adding --jffs2-eraseblock parameter.
...
Marco sais, that flash devices often need a different erase size than mkfs.jffs2
defaults to. Hence, this parameter passes the blocksize to the mkfs.jffs2 call
through --eraseblock option.
2008-03-01 13:19:54 +01:00
Daniel Baumann
ccb76dc4a4
It's actually enough to just truncate kernel-img.conf and also less invasive than including a default configuration.
2008-02-29 17:29:00 +01:00
Daniel Baumann
6244123de2
Including default kernel-img.conf in live-systems.
2008-02-29 16:40:02 +01:00
Daniel Baumann
179b86ab64
Using wildcards to support more than one preseeding file.
2008-02-29 13:32:16 +01:00
Daniel Baumann
d104e3f6e7
Honor local preseeding file for debian-installer.
2008-02-29 13:27:56 +01:00
Daniel Baumann
5ce8ab768b
Fixing typo in sed call to set isolinux splash file.
2008-02-29 12:47:03 +01:00
Daniel Baumann
88ecda55c3
Added forgotten getopts arguments for chroot mirror.
2008-02-27 21:06:11 +01:00
Daniel Baumann
0472269ef8
When a wrong argument is passed, that argument should be listed ( Closes : #468201 ).
2008-02-27 19:05:35 +01:00
Daniel Baumann
2d88de5ab6
Adding option to set binary-net compression (or disable it).
2008-02-26 19:57:41 +01:00
Daniel Baumann
7d67f78ddf
Re-adding additional indices updated, otherwise we wouldn't honor thirdparty repositories (anymore).
2008-02-24 16:30:58 +01:00
Daniel Baumann
c6fa0ca042
Renaming LH_MIRROR_BOOTSTRAP* to LH_MIRROR_CHROOT and introducing dedicated LH_MIRROR_BOOTSTRAP for debootstrap/cdebootstrap only.
2008-02-21 20:52:37 +01:00
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