Michael Prokop [Tue, 9 Jun 2015 22:01:54 +0000 (00:01 +0200)]
packer: improve support for testing local grml-debootstrap version
Sadly packer lacks an option to copy an entire directory
*excluding* certain files, otherwise we could just copy the whole
grml-debootstrap.git directory. But as to the packer_cache
directory is present in grml-debootstrap.git directory during
packer execution this makes no sense. So use a workaround to get
the same behaviour. Allow testing of grml-debootstrap without
having to commit and push stuff to git first, so one can hack on
stuff, test and only then commit and push it.
Michael Prokop [Fri, 5 Jun 2015 23:36:46 +0000 (01:36 +0200)]
Release new version 0.71
Michael Prokop [Fri, 5 Jun 2015 23:27:46 +0000 (01:27 +0200)]
Update debian/copyright + move to dep5 style
Michael Prokop [Fri, 5 Jun 2015 23:19:10 +0000 (01:19 +0200)]
Drop unmaintained THANKS file
Michael Prokop [Fri, 5 Jun 2015 23:07:39 +0000 (01:07 +0200)]
Add stretch to release-table and update lenny installation instructions
Michael Prokop [Fri, 5 Jun 2015 21:48:23 +0000 (23:48 +0200)]
config: change from GPL-2 to GPL-2+
Michael Prokop [Fri, 5 Jun 2015 13:19:18 +0000 (15:19 +0200)]
packer/Vagrant: make jessie the new default Debian release
Michael Prokop [Fri, 5 Jun 2015 10:48:50 +0000 (12:48 +0200)]
packer: support different Debian + grml-debootstrap releases
* update Grml ISO to version 2014.11
* instead of running 'make packer' now it's possible to execute
"make $debian_version" with support for lenny, squeeze, wheezy,
jessie and stretch as $debian_version (lenny lacking support for
Virtualbox Guest Additions though)
* setting GRML_DEBOOTSTRAP_VERSION allows to control the
grml-debootstrap version that should be used, defaults to the
latest CI build from jenkins.grml.org
Michael Prokop [Fri, 5 Jun 2015 08:43:50 +0000 (10:43 +0200)]
Display error message if --vmfile and --grub are used in same cmdline
This is an invalid and unneeded combination.
Fixes #84 @ github
Michael Prokop [Thu, 4 Jun 2015 13:26:08 +0000 (15:26 +0200)]
Make mountpoint output silent
Related to issue #66 @ github / commit
9d9ec2d4cee334ce5b378fb880a2c58c57e4f6e7
Michael Prokop [Thu, 4 Jun 2015 13:12:43 +0000 (15:12 +0200)]
Disable SCRIPTS by default, replaced by POST_SCRIPTS
Michael Prokop [Thu, 4 Jun 2015 13:04:31 +0000 (15:04 +0200)]
Make check for GRUB_DISABLE_LINUX_UUID more stable
Thanks: Patrick Schleizer <adrelanos@riseup.net> for the feedback
Michael Prokop [Thu, 4 Jun 2015 12:59:45 +0000 (14:59 +0200)]
Run code for --remove-configs before unmounting chroot
Otherwise the mountpoint won't be there anymore.
Also check whether the mountpoint exists before trying
to delete anything.
Fixes #66 @ github
Michael Prokop [Thu, 4 Jun 2015 12:54:43 +0000 (14:54 +0200)]
Write hostname to installed system (fix for
bedb4090)
Fixes #54 @ github
Thanks: Sebastian Pipping <sebastian@pipping.org> for catching this issue
Michael Prokop [Thu, 4 Jun 2015 12:38:34 +0000 (14:38 +0200)]
Fix syntax error for introduced in
91f2e990ca65aa367
Michael Prokop [Thu, 4 Jun 2015 12:24:36 +0000 (14:24 +0200)]
Provide new option --remove-configs to delete grml-debootstrap configuration files from installed system
Fixes #66 @ github
Michael Prokop [Thu, 4 Jun 2015 12:11:22 +0000 (14:11 +0200)]
Honor GRUB_DISABLE_LINUX_UUID=true and don't set root=UUID then
According to the bug report pygrub doesn't support the UUID
magic. If the user explicitely sets GRUB_DISABLE_LINUX_UUID=true
in /etc/default/grub we should honor that. Don't adjust grub.cfg
but instead prompt a warning then.
Fixes #65 @ github
Michael Prokop [Thu, 4 Jun 2015 11:40:12 +0000 (13:40 +0200)]
Ensure that grub-pc is installed in VMs even when using --nopackages
We're always setting up GRUB as bootloader when installing a VM.
If the --nopackages options is present the grub-pc package is
missing inside the VM. Therefore ensure that the grub-pc is still
present.
Fixes #40 @ github
Michael Prokop [Thu, 4 Jun 2015 11:38:30 +0000 (13:38 +0200)]
Provide hostname to pre-scripts by setting up /etc/hostname
While at it fix coding style and quoting of execute_pre_scripts() function.
Fixes #54 @ github
Michael Prokop [Thu, 4 Jun 2015 11:33:34 +0000 (13:33 +0200)]
Explicitely set LANGUAGE=C to avoid possible locale issues
In github issue #48 the following was reported when running with
option --debopt "--verbose --include=grub-pc,locales":
| *** update-locale: Error: invalid locale settings: LANGUAGE=en_US:en LANG=en_US.UTF-8
While this shouldn't be a real problem but just a warning message
it still might be a good idea to explictely reset LANGUAGE=C.
See https://www.gnu.org/software/gettext/manual/html_node/Locale-Environment-Variables.html
for details regarding LANG/LC_ALL/LANGUAGE handling.
Fixes #48 @ github
Michael Prokop [Thu, 4 Jun 2015 10:43:56 +0000 (12:43 +0200)]
Rename --scripts to --post-scripts for consistency
The --scripts option and SCRIPTS config are still supported but display a
deprecation warning now.
Fixes #52 @ github
Michael Prokop [Thu, 4 Jun 2015 10:39:23 +0000 (12:39 +0200)]
Include HTML documentation in Debian package
Michael Prokop [Thu, 4 Jun 2015 10:33:25 +0000 (12:33 +0200)]
Make it more friendly to install on non-Debian distributions
* make DOCBOOK_XML=... supports providing a custom docbook.xsl
instead of the default (/usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl)
* provide install target via Makefile, supporting $DESTDIR
* minimize debian/rules
This should allow installation of grml-debootstrap on e.g. Fedora + Gentoo.
Thanks: Sebastian Pipping <sebastian@pipping.org> for feature request
Fixes #57 @ github
Michael Prokop [Thu, 4 Jun 2015 09:00:35 +0000 (11:00 +0200)]
Do not copy `packages` file if --nopackages option is present
Fixes #46 @ github
Michael Prokop [Thu, 4 Jun 2015 08:58:04 +0000 (10:58 +0200)]
Improve --vm and --vmfile usage instructions
Fixes #45 @ github
Michael Prokop [Thu, 4 Jun 2015 08:30:30 +0000 (10:30 +0200)]
Don't try to re-read partition table when building VMs using loop devices
This always causes "BLKRRPART: Invalid argument", so there's probably
no point in executing this at all.
Fixes #38 @ github
Michael Prokop [Thu, 4 Jun 2015 08:06:40 +0000 (10:06 +0200)]
Always remove /boot/grub/device.map to avoid leaking host data
Thanks: Patrick Schleizer <adrelanos@riseup.net> for bug report and feedback
Fixes #27 @ github
Michael Prokop [Thu, 4 Jun 2015 07:58:08 +0000 (09:58 +0200)]
Provide workaround for GRUB font path bug in jessie (Debian #787685)
Michael Prokop [Thu, 4 Jun 2015 07:56:22 +0000 (09:56 +0200)]
Improve check for identifying underlying block device
There's no point in trying to read the partition table
for e.g. /dev/loop if we get /dev/loop0.
Fixes #42 @ github
Closes: #771192
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)