Michael Prokop [Wed, 3 Jun 2015 15:09:22 +0000 (17:09 +0200)]
Release new version 0.70
Michael Prokop [Wed, 3 Jun 2015 15:08:04 +0000 (17:08 +0200)]
docs: mention --contrib + --non-free options
Michael Prokop [Wed, 3 Jun 2015 13:48:22 +0000 (15:48 +0200)]
Drop contrib + non-free from default COMPONENTS, support --contrib + -non-free cmdline options
Let's see if firmware-linux really matters nowadays.
By default we include the 'main' component only,
to enable 'contrib' + 'non-free' either use the
new command line options --contrib + -non-free
or set COMPONENTS in grml-debootstrap's config.
Thanks to Philip Hands for raising this
Michael Prokop [Wed, 3 Jun 2015 13:43:29 +0000 (15:43 +0200)]
Install firmware-linux only when non-free is among the COMPONENTS
Closes: #786966
Thanks: Philip Hands <phil@hands.com> for the patch
Michael Prokop [Fri, 8 May 2015 19:43:55 +0000 (21:43 +0200)]
Use full fingerprint instead of short GPG key ids for Grml repository
Using output of `gpg --fingerprint
F61E2E7CECDEA787` (minus space chars).
Thanks: Patrick Schleizer <adrelanos@riseup.net> for bug report and feedback
Fixes #64 @ github
Patrick Schleizer [Tue, 16 Dec 2014 18:49:17 +0000 (18:49 +0000)]
implemented trap ERR for grml-debootstrap and chroot-script; changed chroot script from sh to bash script, because trap ERR is a bashism
Sebastian Pipping [Wed, 6 May 2015 17:29:33 +0000 (19:29 +0200)]
Fix grub-install invocation for post-wheezy releases and sid (issue #78)
Sebastian Pipping [Wed, 6 May 2015 16:56:46 +0000 (18:56 +0200)]
Install GRUB once, at most (second take, issue #78)
Sebastian Pipping [Wed, 6 May 2015 18:27:29 +0000 (20:27 +0200)]
Revert "Add grub-common to recommended dependencies for grub-mkimage (issue #61)"
This reverts commit
9d3d53815af22205fb4ba15419c254f21d410a19.
Sebastian Pipping [Wed, 6 May 2015 18:27:16 +0000 (20:27 +0200)]
Revert "Check for grub-mkimage when creating virtual machine images (issue #61)"
This reverts commit
d945d993b294e9052833c8826fc483be3ae22908.
Michael Prokop [Fri, 8 May 2015 11:59:05 +0000 (13:59 +0200)]
Merge remote-tracking branch 'hartwork:one-more-umount-fix'
PR 82 on github
Conflicts:
grml-debootstrap
Sebastian Pipping [Wed, 6 May 2015 17:59:02 +0000 (19:59 +0200)]
Add support for installation of Debian stretch (issue #77)
Default release (jessie) remains as-is.
Sebastian Pipping [Wed, 6 May 2015 17:58:12 +0000 (19:58 +0200)]
Fix current release-related texts before adding stretch (issue #77)
Sebastian Pipping [Wed, 6 May 2015 14:57:08 +0000 (16:57 +0200)]
No longer write too many disk ID bytes (issue #75)
Sebastian Pipping [Wed, 11 Mar 2015 14:49:26 +0000 (15:49 +0100)]
Mount and unmount /dev/pts for chrooting (issue #39)
Addressing:
| E: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory)
Sebastian Pipping [Wed, 6 May 2015 18:23:41 +0000 (20:23 +0200)]
Fix unmounting [..]/dev once more (issue #50)
Michael Prokop [Fri, 24 Apr 2015 16:20:39 +0000 (18:20 +0200)]
Release new version 0.69
Michael Prokop [Tue, 10 Mar 2015 14:16:34 +0000 (15:16 +0100)]
Define ewarn function to properly display warning messages
Closes: #780204
Sebastian Pipping [Fri, 6 Mar 2015 13:06:21 +0000 (14:06 +0100)]
Add missing escaping of user input (issue #58)
Sebastian Pipping [Fri, 6 Mar 2015 15:51:06 +0000 (16:51 +0100)]
Source cmdlineopts.clp from same folder as grml-debootstrap file (issue #59)
Simplified, this fixes CVE-2015-1378 for everyone but grml-debootstrap developers.
Sebastian Pipping [Tue, 10 Mar 2015 00:47:10 +0000 (01:47 +0100)]
Fixed version reported when run from Git (issue #55)
Sebastian Pipping [Tue, 10 Mar 2015 00:33:08 +0000 (01:33 +0100)]
Add grub-common to recommended dependencies for grub-mkimage (issue #61)
Sebastian Pipping [Tue, 10 Mar 2015 00:32:41 +0000 (01:32 +0100)]
Check for grub-mkimage when creating virtual machine images (issue #61)
Michael Prokop [Tue, 10 Mar 2015 13:49:41 +0000 (14:49 +0100)]
Do not stop hosts' SSH + mdadm services in cleanup procedure
The init script uses start-stop-daemon with the pidfile
/var/run/sshd.pid. We can't just stop the service from
outside the chroot because this terminates the process of the
host system instead of the process *inside* the chroot.
Thanks: Sebastian Pipping for debugging and bug report
Fixes #63 (GH-37, PR 71)
Sebastian Pipping [Tue, 10 Mar 2015 00:11:20 +0000 (01:11 +0100)]
Fix packer/Makefile dependencies
Sebastian Pipping [Tue, 10 Mar 2015 00:07:28 +0000 (01:07 +0100)]
Initialize packer/.gitignore
Sebastian Pipping [Tue, 10 Mar 2015 00:06:52 +0000 (01:06 +0100)]
Delete binary packer/fake-uname.so (issue #49)
Patrick Schleizer [Sat, 29 Nov 2014 16:23:02 +0000 (16:23 +0000)]
Break when using unsupported generic codenames "stable" or "testing"
Fixes #37 (GH-37, PR 43)
Sebastian Pipping [Tue, 2 Dec 2014 15:02:48 +0000 (16:02 +0100)]
Try unmounting [..]/dev harder
Fixes #41 (GH-41, PR 50)
Michael Prokop [Thu, 11 Dec 2014 17:38:26 +0000 (18:38 +0100)]
Release new version 0.68
Michael Prokop [Thu, 11 Dec 2014 10:40:24 +0000 (11:40 +0100)]
Adjust filesystem check for new blkid behaviour
blkid used to return with an exit code of 2 if 'blkid -s TYPE -o
value' was executed on an unformated device. Nowadays blkid
returns with exit code 0 even if there's no file system on the
according device.
Related to #772846 in Debian.
Closes: #772849
Michael Prokop [Mon, 13 Oct 2014 19:16:34 +0000 (21:16 +0200)]
Release new version 0.67
Michael Prokop [Mon, 13 Oct 2014 19:14:52 +0000 (21:14 +0200)]
Fix check for available /dev/md* devices
/dev/md* might also expand devices like /dev/md/0:
| # ls -la /dev/md*
| brw-rw---- 1 root disk 9, 0 Oct 13 19:01 /dev/md0
|
| /dev/md:
| total 0
| drwxr-xr-x 2 root root 60 Oct 13 19:01 ./
| drwxr-xr-x 15 root root 3860 Oct 13 19:02 ../
| lrwxrwxrwx 1 root root 6 Oct 13 19:01 0 -> ../md0
We're interested only in /dev/md[0-9]* devices though.
Michael Prokop [Mon, 13 Oct 2014 18:46:23 +0000 (20:46 +0200)]
Fix linux-image package check for Debian/jessie 32bit
The linux-image-686 package no longer exists in jessie,
instead we have to use linux-image-686-pae nowadays.
Thanks: Patrick Schleizer <adrelanos@riseup.net> for the bug report
Fixes #32 @ github
Michael Prokop [Mon, 13 Oct 2014 18:33:48 +0000 (20:33 +0200)]
docs: set man.base.url.for.relative.links option when generating man-page
This avoids the strange:
| 1. [set $man.base.url.for.relative.links]/images/screenshot.png
message in the generated man-page.
Michael Prokop [Mon, 13 Oct 2014 16:13:52 +0000 (18:13 +0200)]
Support GRUB as present in Debian/jessie in VM builds
Fixes #30 @ github
Michael Prokop [Mon, 13 Oct 2014 13:22:55 +0000 (15:22 +0200)]
Execute kpartx in sync mode to avoid race conditions
Otherwise the according loop device might not be present yet
when we're trying to access it (via mkfs).
Michael Prokop [Mon, 13 Oct 2014 13:07:57 +0000 (15:07 +0200)]
docs: fix wrong usage example description
Thanks: Florian Klien for the bug report
Michael Prokop [Mon, 13 Oct 2014 12:50:56 +0000 (14:50 +0200)]
Always use UUIDs for GRUB booting in VMs instead of hardcoding values
Only necessary for wheezy and older Debian releases, since jessie
it's working fine ootb.
Michael Prokop [Mon, 13 Oct 2014 12:37:28 +0000 (14:37 +0200)]
Do not use fixed disk identifiers by default
This is calling for problems when dealing with multiple
disks/installations at the same time that have been installed via
grml-debootstrap.
Fixes #29 @ github
Michael Prokop [Mon, 13 Oct 2014 12:33:05 +0000 (14:33 +0200)]
Fix some further issues identified by shellcheck
Fixes #23 @ github
Michael Prokop [Mon, 13 Oct 2014 11:08:35 +0000 (13:08 +0200)]
config: use uuidgen tool for DISK_IDENTIFIER usage example
Fixes #29 @ github
Patrick Schleizer [Mon, 13 Oct 2014 11:05:01 +0000 (13:05 +0200)]
Use UUIDs in /boot/grub/grub.cfg for VM builds rather than hardcoding /dev/sda
This allows booting the image in KVM as either sda or vda without
requiring any manual changes in /boot/grub/grub.cfg. Use
FIXED_DISK_IDENTIFIERS="yes" for VM builds by default.
Patch rebased by Michael Prokop <mika@grml.org>
Fixes #29 @ github
Michael Prokop [Mon, 13 Oct 2014 10:53:35 +0000 (12:53 +0200)]
Fix some minor issues identified by shellcheck
Fixes #23 @ github
Michael Prokop [Mon, 13 Oct 2014 10:19:02 +0000 (12:19 +0200)]
Make disk identifier configurable via DISK_IDENTIFIER variable
When using fixed disk identifiers for Virtual Machine
builds (using FIXED_DISK_IDENTIFIERS='yes').
Thanks: Patrick Schleizer <adrelanos@riseup.net> for the initial patch
Fixes: #28
Michael Prokop [Mon, 13 Oct 2014 10:05:12 +0000 (12:05 +0200)]
docs: simplify table of supported releases, mention lenny issue
We don't usually test with cdebootstrap, so there's no point
in listing this any longer.
While at it switch to the new asciidoc table format.
Michael Prokop [Mon, 13 Oct 2014 09:36:12 +0000 (11:36 +0200)]
Add sources.list support for squeeze-lts
Michael Prokop [Mon, 13 Oct 2014 09:26:23 +0000 (11:26 +0200)]
Support MKFS_OPTS variable + use -F option in mkfs.ext* when running in force mode
Michael Prokop [Mon, 13 Oct 2014 09:15:56 +0000 (11:15 +0200)]
package selection: replace dhcp3-client with isc-dhcp-client
The dhcp3-client package no longer exists in Debian/jessie.
Michael Prokop [Mon, 13 Oct 2014 08:58:39 +0000 (10:58 +0200)]
Add support for jessie in dialog based user interface
Michael Prokop [Mon, 13 Oct 2014 08:58:38 +0000 (10:58 +0200)]
Use jessie as new default release
Michael Prokop [Mon, 13 Oct 2014 08:57:26 +0000 (10:57 +0200)]
Update documentation for upcoming stable release Debian/jessie
Michael Prokop [Thu, 2 Oct 2014 09:40:16 +0000 (11:40 +0200)]
Release new version 0.66
Michael Prokop [Thu, 2 Oct 2014 09:39:48 +0000 (11:39 +0200)]
Bump Standards-Version to 3.9.6
Markus Rekkenbeil [Sat, 30 Aug 2014 17:38:07 +0000 (19:38 +0200)]
Add set process for /etc/mailname [Closes: issue1315]
Patrick Schleizer [Thu, 24 Jul 2014 22:05:02 +0000 (22:05 +0000)]
Adjust locale handling (LANG/LANGUAGE) to match with Debian wheezy defaults
Fixes #25
Michael Prokop [Tue, 29 Jul 2014 19:39:43 +0000 (21:39 +0200)]
Execute wrap-and-sort on debian directory
Michael Prokop [Tue, 29 Jul 2014 19:30:58 +0000 (21:30 +0200)]
Provide 'make shellcheck' for syntax checks, enable during package build
While at it drop the deprecated 'make online' target.
Michael Prokop [Thu, 3 Jul 2014 10:28:01 +0000 (12:28 +0200)]
Release new version 0.65
Michael Prokop [Thu, 3 Jul 2014 10:16:34 +0000 (12:16 +0200)]
Merge branch 'master' of https://github.com/zeha/grml-debootstrap
Michael Prokop [Thu, 15 May 2014 15:25:04 +0000 (17:25 +0200)]
Improve packer deployment for usage in Vagrant
* work around "stdin: is not a tty" issue via /root/.profile
* set up loopback entry in /etc/hosts to make sudo happy ("sudo: unable to resolve host")
* store build information to /etc/grml_debootstrap.info
Michael Prokop [Sun, 20 Apr 2014 00:31:00 +0000 (02:31 +0200)]
Initial packer/vagrant/autotest setup
Christian Hofstaedtler [Sat, 26 Apr 2014 18:33:56 +0000 (20:33 +0200)]
Add option --vm to install VMs into LVs and such
--vmfile insists on creating an image using qemu-img, whereas --vm
requires an existing container (for example an LVM LV).
Michael Prokop [Sun, 20 Apr 2014 00:51:37 +0000 (02:51 +0200)]
Release new version 0.64
Michael Prokop [Sun, 20 Apr 2014 00:01:18 +0000 (02:01 +0200)]
Provide option --defaultinterfaces to install default /etc/network/interfaces
This should complete all combinations that make sense WRT
default /etc/network/interfaces handling
Michael Prokop [Sat, 19 Apr 2014 23:28:33 +0000 (01:28 +0200)]
Set up default /etc/network/interfaces with dhcp for eth0 in VM use case
Network interfaces in VM should listen to DHCP by default,
and if /etc/network/interfaces doesn't exist at all (so
takeover from host to guest isn't possible either) create
a sane default as well.
Thanks: Christian Hofstaedtler <christian@hofstaedtler.name> for suggestion + review
Thanks: Ulrich Dangel <mru@spamt.net> for review
Fixes #20
Michael Prokop [Sat, 19 Apr 2014 00:13:15 +0000 (02:13 +0200)]
Initial README.md (esp. for Github users)
Michael Prokop [Sat, 19 Apr 2014 00:04:45 +0000 (02:04 +0200)]
Release new version 0.63
Michael Prokop [Fri, 18 Apr 2014 23:53:07 +0000 (01:53 +0200)]
Do not enable security mirror for lenny release, being unavailable/unsupported nowadays
Michael Prokop [Fri, 18 Apr 2014 23:38:14 +0000 (01:38 +0200)]
Support --nokernel option to skip installation of default kernel images
As needed in a $customer environment (not to be named [yet]).
Michael Prokop [Fri, 18 Apr 2014 23:30:28 +0000 (01:30 +0200)]
Clarify usage of default hostname ($HOSTNAME is considered)
Michael Prokop [Fri, 18 Apr 2014 23:10:40 +0000 (01:10 +0200)]
Update documentation WRT supported releases and some minor fixes
Michael Prokop [Wed, 16 Apr 2014 05:46:19 +0000 (07:46 +0200)]
Copy /etc/network/interfaces from host system, unless --nointerfaces is used or target is a VM
Thanks: Michael Renner <michael.renner@amd.co.at> for feature request and sponsoring my development time
Michael Prokop [Tue, 15 Apr 2014 10:41:24 +0000 (12:41 +0200)]
Support execution of --grub when installing to target directory
Thanks: Michael Renner <michael.renner@amd.co.at> for initial bug report and sponsoring my development time
Michael Prokop [Tue, 15 Apr 2014 10:41:00 +0000 (12:41 +0200)]
Provide --debug option for very verbose execution
This effectively executes grml-debootstrap under 'set -x'
(including the chroot script), so it's easy to generate an
execution log via e.g.:
grml-debootstrap ... --debug --force 2>&1 | tee -a grml-deboootstrap.log
and providing it to grml-debootstrap developers for further
investigation.
Michael Prokop [Tue, 15 Apr 2014 09:56:26 +0000 (11:56 +0200)]
Switch default filesystem from ext3 to ext4
It should be safe to default to ext4 nowadays with Debian/wheezy
being the stable Debian release.
Christian Hofstaedtler [Mon, 14 Apr 2014 10:12:22 +0000 (12:12 +0200)]
Fix smbfs example in fstab
mount.smbfs is apparently gone, and mount.cifs doesn't understand "defaults" any more.
Michael Prokop [Tue, 8 Apr 2014 17:32:46 +0000 (19:32 +0200)]
Release new version 0.62
Michael Prokop [Tue, 8 Apr 2014 17:31:29 +0000 (19:31 +0200)]
Execute apt upgrade with DEBIAN_FRONTEND environment variable
Noticed via recent libssl1.0.0 upgrade that the
DEBIAN_FRONTEND usage is missing in the $APTUPGRADE
command line.
Michael Prokop [Thu, 20 Mar 2014 22:37:07 +0000 (23:37 +0100)]
Release new version 0.61
Michael Prokop [Thu, 20 Mar 2014 22:13:51 +0000 (23:13 +0100)]
Add ifenslave and cryptsetup to default package list [Closes: issue1293]
Michael Prokop [Thu, 20 Mar 2014 15:22:26 +0000 (16:22 +0100)]
Release new version 0.60
Michael Prokop [Thu, 20 Mar 2014 15:21:52 +0000 (16:21 +0100)]
Bump Standards-Version to 3.9.5
Michael Prokop [Fri, 7 Mar 2014 23:52:28 +0000 (00:52 +0100)]
Abort if FIXED_DISK_IDENTIFIERS is set but mkfs.* does not match for ext{2,3,4} file system
Patrick Schleizer [Thu, 6 Mar 2014 15:47:24 +0000 (15:47 +0000)]
Support FIXED_DISK_IDENTIFIERS option, useful for reproducible builds
Credit goes got Thorsten Staerk for his help on stackexchange.
(https://unix.stackexchange.com/questions/111414/how-to-change-the-disk-signature-of-a-raw-image)
Michael Prokop [Mon, 24 Feb 2014 14:39:19 +0000 (15:39 +0100)]
Merge branch 'version' of https://github.com/adrelanos/grml-debootstrap
Patrick Schleizer [Thu, 20 Feb 2014 22:45:16 +0000 (22:45 +0000)]
It is not possible to build amd64 on i386. Break when the user attempts to do this.
Patrick Schleizer [Mon, 17 Feb 2014 22:52:43 +0000 (22:52 +0000)]
grml-debootstrap own version detection code simplification
Patrick Schleizer [Mon, 17 Feb 2014 22:52:43 +0000 (22:52 +0000)]
grml-debootstrap own version detection code simplification
Patrick Schleizer [Tue, 28 Jan 2014 00:49:01 +0000 (00:49 +0000)]
added $DPKG_OPTIONS to all instances of apt-get and aptitude (attempt 2) https://github.com/grml/grml-debootstrap/issues/8
Michael Prokop [Tue, 12 Nov 2013 13:07:17 +0000 (14:07 +0100)]
Release new version 0.59
Michael Prokop [Tue, 12 Nov 2013 12:39:15 +0000 (13:39 +0100)]
Improve error handling for update-locale
Set absolute path to /usr/sbin/update-locale to make sure
the binary can be accessed no matter what's inside $PATH
and if it's not present inform user about it, but do not fail
because the locales-all package might be installed and it doesn't
provide the /usr/sbin/update-locale binary.
Michael Prokop [Tue, 12 Nov 2013 12:31:09 +0000 (13:31 +0100)]
Drop URL to release notes from script header
Michael Prokop [Tue, 12 Nov 2013 12:29:55 +0000 (13:29 +0100)]
Fix usage of configuration variables
Michael Prokop [Tue, 12 Nov 2013 12:16:10 +0000 (13:16 +0100)]
Release new version 0.58
Michael Prokop [Fri, 8 Nov 2013 08:49:05 +0000 (09:49 +0100)]
Mention that "raw format" is used for vmfile option
Since the "qemu-img create" always uses "raw" format, clarify that.
Michael Prokop [Thu, 7 Nov 2013 13:51:05 +0000 (14:51 +0100)]
Fix description of SCRIPTS variable in config file
While at it adjust order of CHROOT_SCRIPTS, PRE_SCRIPTS and
CHROOT_SCRIPTS to better fit the actual execution order.
Thanks: Jimmy Gredler for the hint
Michael Prokop [Tue, 5 Nov 2013 09:00:22 +0000 (10:00 +0100)]
Add bridge-utils to default package list
Michael Prokop [Mon, 4 Nov 2013 17:34:46 +0000 (18:34 +0100)]
Add vlan package to default package list
It's just too annoying to install a system which depends on
vlan configuration and not being able to access the network then.
Michael Prokop [Mon, 21 Oct 2013 07:23:18 +0000 (09:23 +0200)]
Support overriding configuration via environment variables
Inspired by https://github.com/grml/grml-debootstrap/pull/10,
thanks adrelanos