grml-debootstrap.git
4 years agoDefault to C.UTF-8 locale and deprecate /etc/debootstrap/locale.gen, DEFAULT_LOCALES... mika/c-utf8
Michael Prokop [Wed, 21 Aug 2019 15:21:16 +0000 (17:21 +0200)]
Default to C.UTF-8 locale and deprecate /etc/debootstrap/locale.gen, DEFAULT_LOCALES, LOCALES + DEFAULT_LANGUAGE (WIP)

Closes: #125

4 years agotravis: ignore SC2001 which doesn't work for $CHROOT_VARIABLES handling
Michael Prokop [Wed, 21 Aug 2019 20:09:28 +0000 (22:09 +0200)]
travis: ignore SC2001 which doesn't work for $CHROOT_VARIABLES handling

SC2181 = See if you can use ${variable//search/replace} instead

This doesn't work for the $CHROOT_VARIABLES which includes
variables with strings like "/", so we can't rely on the
${variable//search/replace} approach. Quoting from
https://github.com/koalaman/shellcheck/wiki/SC2001:

| Utilizing some of the more complex capabilities of sed is
| required occasionally and it is safe to ignore SC2001.

4 years agopacker: update to grml64-full 2018.12
Michael Prokop [Fri, 12 Jul 2019 08:13:04 +0000 (10:13 +0200)]
packer: update to grml64-full 2018.12

4 years agopacker: make buster the new default Debian release
Michael Prokop [Fri, 12 Jul 2019 07:41:13 +0000 (09:41 +0200)]
packer: make buster the new default Debian release

4 years agoUse new security.debian.org repository layout for bullseye and newer
Michael Prokop [Fri, 12 Jul 2019 07:39:05 +0000 (09:39 +0200)]
Use new security.debian.org repository layout for bullseye and newer

Quoting from https://lists.debian.org/debian-devel-announce/2019/07/msg00004.html:

| over the last years we had people getting confused over <suite>-updates
| (recommended updates) and <suite>/updates (security updates).  Starting
| with Debian 11 "bullseye" we have therefore renamed the suite including
| the security updates to <suite>-security.
|
| An entry in sources.list should look like
|
|   deb http://security.debian.org/debian-security bullseye-security main
|
| For previous releases the name will not change.

4 years agopacker: support Debian 10.0 in tests
Michael Prokop [Thu, 11 Jul 2019 16:41:17 +0000 (18:41 +0200)]
packer: support Debian 10.0 in tests

Debian/buster is version "10.0".

4 years agopacker: Update VBoxGuestAdditions to v5.2.24
Michael Prokop [Thu, 11 Jul 2019 16:20:19 +0000 (18:20 +0200)]
packer: Update VBoxGuestAdditions to v5.2.24

4 years agoRelease new version 0.89 v0.89
Michael Prokop [Fri, 14 Jun 2019 12:47:14 +0000 (14:47 +0200)]
Release new version 0.89

4 years agoEnsure /etc/network exists before setting up /etc/network/interfaces mika/buster
Michael Prokop [Thu, 13 Jun 2019 09:27:45 +0000 (11:27 +0200)]
Ensure /etc/network exists before setting up /etc/network/interfaces

When grml-debootstrap is invoked with `--debopt --variant=minbase`, our
handling of /etc/network/interfaces fails, as the directory
/etc/network/ doesn't necessarily exist yet in the essential/minbase
variants (unless you explicitly install ifupdown/netbase).

Closes: #930468

4 years agoFix detection of predictable network interface names
Michael Prokop [Fri, 31 May 2019 14:41:50 +0000 (16:41 +0200)]
Fix detection of predictable network interface names

E.g. virtio drivers might have the properties ID_NET_NAME_PATH=enp0s18
and ID_NET_NAME_SLOT=ens18. If we check only for ID_NET_NAME_PATH, then
we end up with a network configuration for enp0s18, while the actual
network interface name will be ens18.

So instead look at all present network devices, iterate over them
(ignoring the virtual interfaces like bridges + vboxnet) and
check for present ID_NET_NAME_* settings, using the following precedence
(as defined in link_config_apply() of systemd/src/udev/net/link-config.c):

* ID_NET_NAME_FROM_DATABASE
* ID_NET_NAME_ONBOARD
* ID_NET_NAME_SLOT
* ID_NET_NAME_PATH
* ID_NET_NAME_MAC

Closes: #929810

5 years agoRelease new version 0.88 v0.88
Michael Prokop [Sat, 2 Mar 2019 10:27:28 +0000 (11:27 +0100)]
Release new version 0.88

5 years agodocs: fix typo mika/0.88
Michael Prokop [Sat, 2 Mar 2019 09:49:41 +0000 (10:49 +0100)]
docs: fix typo

5 years agosshcopyid option: exit if `ssh-add -L` fails to execute
Michael Prokop [Sat, 2 Mar 2019 09:40:56 +0000 (10:40 +0100)]
sshcopyid option: exit if `ssh-add -L` fails to execute

If a user requested the --sshcopyid option then it's supposed
to be run successfully, otherwise it might leave an inaccessible
system, so exit with error if execution of `ssh-add -L` fails.

While at it:

* simplify code (no need for $RC)
* don't fail if directory /root/.ssh exists already
* append keys to possibly existing /root/.ssh/authorized_keys
  file, instead of overwriting it

5 years agoMerge remote-tracking branch 'origin/pr/129'
Michael Prokop [Sat, 2 Mar 2019 09:29:47 +0000 (10:29 +0100)]
Merge remote-tracking branch 'origin/pr/129'

5 years agoMerge remote-tracking branch 'origin/pr/127'
Michael Prokop [Sat, 2 Mar 2019 09:29:42 +0000 (10:29 +0100)]
Merge remote-tracking branch 'origin/pr/127'

5 years agoAdd option --sshcopyid to authorise root login
Darshaka Pathirana [Sat, 2 Mar 2019 02:35:02 +0000 (03:35 +0100)]
Add option --sshcopyid to authorise root login

Use locally available public keys to authorise root login on the target
system.

Similar to ssh-copy-id(1) (without the -i option) it checks if `ssh-add
-L` provides any output, and if so those keys are appended to
`/root/.ssh/authorized_keys`.

Closes: grml/grml-debootstrap#128

5 years agoAdd DHCP setting for Predictable Network Interface Names
Darshaka Pathirana [Sat, 2 Mar 2019 01:22:12 +0000 (02:22 +0100)]
Add DHCP setting for Predictable Network Interface Names

Predictable Network Interface Names were missing the default
/etc/network/interfaces file when using the --defaultinterfaces option.

Added a Networking-Section in the man page to clarify how the network is
configured in the target system and fixed the documentation for the
options --vmfile and --vm. Both options automatically enable the
--defaultinterface option and not the --nointerfaces option.

Closes: grml/grml-debootstrap#126

5 years agoUpdate bug report instructions
Michael Prokop [Fri, 25 Jan 2019 10:04:14 +0000 (11:04 +0100)]
Update bug report instructions

Closes: https://github.com/grml/grml-debootstrap/pull/122
Thanks: Patrick Schleizer

5 years agoRelease new version 0.87 v0.87
Michael Prokop [Thu, 24 Jan 2019 09:21:39 +0000 (10:21 +0100)]
Release new version 0.87

5 years agodocs: add further and improve existing usage examples
Michael Prokop [Thu, 24 Jan 2019 09:08:36 +0000 (10:08 +0100)]
docs: add further and improve existing usage examples

There's no reason to say "use /dev/sda1 as system partition"
all the time, when we already mention that we "Install Debian on /dev/sda1".

Provide usage examples for mmdebstrap and LVM devices.

The --iso option also accepts mountpoint without any file: syntax,
which is more human-friendly.

5 years agodebian/rules: support nocheck in DEB_BUILD_OPTIONS
Michael Prokop [Thu, 24 Jan 2019 08:45:24 +0000 (09:45 +0100)]
debian/rules: support nocheck in DEB_BUILD_OPTIONS

Spotted by lintian (see tag override_dh_auto_test-does-not-check-DEB_BUILD_OPTIONS)

5 years agozsh-completion: improve wording and list of available options to better match reality
Michael Prokop [Thu, 24 Jan 2019 08:35:29 +0000 (09:35 +0100)]
zsh-completion: improve wording and list of available options to better match reality

The --mntpoint option is quite unimportant, whereas --grub, --password
and --bootappend all require an argument. Instead the --hostname is
quite important. Adjust accordingly.

Add related debian/post* scripts for proper dpkg-maintscript-helper
rm_conffile support.

5 years agoInstall zsh-completion in /usr/share/zsh/vendor-completions
Michael Prokop [Thu, 24 Jan 2019 08:23:42 +0000 (09:23 +0100)]
Install zsh-completion in /usr/share/zsh/vendor-completions

Since Zsh version v4.3.12-1 in Debian completions should
go to /usr/share/zsh/vendor-completions and are supported
there out-of-the-box.

5 years agogrml-debootstrap man page: point users towards github instead of private mail
Michael Prokop [Thu, 24 Jan 2019 08:18:01 +0000 (09:18 +0100)]
grml-debootstrap man page: point users towards github instead of private mail

5 years agoReplace http with https where possible
Michael Prokop [Thu, 24 Jan 2019 08:15:34 +0000 (09:15 +0100)]
Replace http with https where possible

5 years agoDrop no longer relevant releasetable-man.txt
Michael Prokop [Thu, 24 Jan 2019 08:09:32 +0000 (09:09 +0100)]
Drop no longer relevant releasetable-man.txt

5 years agoSupport mmdebstrap via DEBOOTSTRAP=mmdebstrap
Michael Prokop [Thu, 24 Jan 2019 08:08:07 +0000 (09:08 +0100)]
Support mmdebstrap via DEBOOTSTRAP=mmdebstrap

The only known incompatibility so far is the --iso ... option.
Therefore abort grml-debootstrap if DEBOOTSTRAP=mmdebstrap
and --iso ... option are used at the same time.

Closes: https://github.com/grml/grml-debootstrap/issues/120

5 years agoMakefile: use https version of website as man.base.url.for.relative.links
Michael Prokop [Wed, 23 Jan 2019 15:41:20 +0000 (16:41 +0100)]
Makefile: use https version of website as man.base.url.for.relative.links

5 years agoMerge remote-tracking branch 'origin/pr/118'
Michael Prokop [Wed, 23 Jan 2019 15:38:10 +0000 (16:38 +0100)]
Merge remote-tracking branch 'origin/pr/118'

5 years agoRelease new version 0.86 v0.86
Michael Prokop [Fri, 18 Jan 2019 13:15:46 +0000 (14:15 +0100)]
Release new version 0.86

5 years agoBind-mount /run/udev in target system as workaround for lvm2 issue #918590
Michael Prokop [Fri, 18 Jan 2019 12:54:47 +0000 (13:54 +0100)]
Bind-mount /run/udev in target system as workaround for lvm2 issue #918590

Installation takes ages with lvm 2.03.02-1 if /run/udev isn't
available in the target system, causing messages like:

| WARNING: Device /dev/[...] not initialized in udev database even after waiting 10000000 microseconds.

Especially when grub package gets installed (which invokes
vgs and related tools) this takes forever and looks like a
failing installation.

This /run/udev bind-mount is a workaround required for Debian/buster's
lvm2, at least until #918590 is resolved.

5 years agoAdd Debian/buster to release-table in man page
Darshaka Pathirana [Mon, 7 Jan 2019 03:05:02 +0000 (04:05 +0100)]
Add Debian/buster to release-table in man page

5 years agoRelease new version 0.85 v0.85
Michael Prokop [Sun, 30 Dec 2018 10:48:25 +0000 (11:48 +0100)]
Release new version 0.85

5 years agoBump Standards-Version to 4.3.0
Michael Prokop [Sun, 30 Dec 2018 10:48:02 +0000 (11:48 +0100)]
Bump Standards-Version to 4.3.0

No further changes needed

5 years agoAdd preliminary support for Debian/bullseye (AKA Debian v11.0)
Michael Prokop [Sun, 30 Dec 2018 10:27:25 +0000 (11:27 +0100)]
Add preliminary support for Debian/bullseye (AKA Debian v11.0)

The "bullseye" release doesn't exist on the Debian repositories
as such yet, though it's supposed to appear at least once buster
(AKA Debian v10.0) is stable.

5 years agoSupport and default to Debian/buster release, update docs accordingly
Michael Prokop [Sat, 29 Dec 2018 16:35:40 +0000 (17:35 +0100)]
Support and default to Debian/buster release, update docs accordingly

On 2019-02-12 there's the soft-freeze starting for the Buster release.
Accordingly default to buster as new default within grml-debootstrap.

Closes: grml/grml-debootstrap#117

5 years agoRework backports.debian.org usage (`--backportrepos` option)
Michael Prokop [Sun, 30 Dec 2018 10:03:23 +0000 (11:03 +0100)]
Rework backports.debian.org usage (`--backportrepos` option)

In September 2018 the backports service was migrated from backports.org
to an official service within the Debian project and repositories (see
https://www.debian.org/News/2010/20100905).

This means http://backports.debian.org/debian-backports no longer exists
as such. Accordingly update the URL to point to the Debian repositories
(using ${RELEASE}-backports).

5 years agoRelease new version 0.84 v0.84
Michael Prokop [Wed, 19 Dec 2018 09:43:54 +0000 (10:43 +0100)]
Release new version 0.84

5 years agopacker: Update VirtualBox Guest Additions to 5.2.22
Michael Prokop [Tue, 18 Dec 2018 17:09:00 +0000 (18:09 +0100)]
packer: Update VirtualBox Guest Additions to 5.2.22

VirtualBox 5.2.22 is available in current stretch-backports, testing
(buster) and unstable. The URL for VBoxGuestAdditions_5.2.1-118918.iso
no longer works (results in 404).

5 years agoMerge remote-tracking branch 'origin/pr/116'
Michael Prokop [Fri, 14 Dec 2018 15:30:06 +0000 (16:30 +0100)]
Merge remote-tracking branch 'origin/pr/116'

5 years agoDo not create target directory in /dev
Darshaka Pathirana [Fri, 14 Dec 2018 15:19:25 +0000 (16:19 +0100)]
Do not create target directory in /dev

grml-debootstrap used to happily create a target directory in /dev if
for instance one forgot to partition sda. To avoid such a mistake it
feels better to abort the installation.

Closes: grml/grml-debootstrap#99

5 years agoRelease new version 0.83 v0.83
Michael Prokop [Wed, 14 Nov 2018 21:29:10 +0000 (22:29 +0100)]
Release new version 0.83

5 years agoMerge remote-tracking branch 'remotes/origin/pr/113'
Michael Prokop [Wed, 14 Nov 2018 21:23:04 +0000 (22:23 +0100)]
Merge remote-tracking branch 'remotes/origin/pr/113'

5 years agoReport "Device-mapper support missing in kernel." as error message
Michael Prokop [Wed, 14 Nov 2018 21:17:11 +0000 (22:17 +0100)]
Report "Device-mapper support missing in kernel." as error message

Fix typo in comment, while at it

5 years agoMerge remote-tracking branch 'origin/pr/111'
Michael Prokop [Wed, 14 Nov 2018 21:12:40 +0000 (22:12 +0100)]
Merge remote-tracking branch 'origin/pr/111'

5 years agoMerge remote-tracking branch 'origin/pr/112'
Michael Prokop [Wed, 14 Nov 2018 21:08:35 +0000 (22:08 +0100)]
Merge remote-tracking branch 'origin/pr/112'

5 years agoMakefile: drop functions directory, no longer being relevant
Michael Prokop [Wed, 14 Nov 2018 21:07:23 +0000 (22:07 +0100)]
Makefile: drop functions directory, no longer being relevant

With the integration of cmdlinesopts.clp into the main script
this directory is no longer relevant.

5 years agoImprove cleanup of loop devices
Darshaka Pathirana [Wed, 25 Jul 2018 10:14:37 +0000 (12:14 +0200)]
Improve cleanup of loop devices

kpartx (sometimes) does not cleanup the loop devices when deleting the
partition devmappings. This is a known bug, see Debian Bug #891077.

This is change is a possible workaround for that issue.

Now aborting grml-debootstrap is possible without leaving unneded loop
devices behind.

5 years agocode style; einfo GRUB_INSTALL; document GRUB_INSTALL
Patrick Schleizer [Sun, 9 Sep 2018 16:24:09 +0000 (12:24 -0400)]
code style; einfo GRUB_INSTALL; document GRUB_INSTALL

5 years agosupport skipping installation of grub using GRUB_INSTALL='no'
Patrick Schleizer [Mon, 27 Aug 2018 20:26:44 +0000 (20:26 +0000)]
support skipping installation of grub using GRUB_INSTALL='no'

split finalize_vm into grub_install and umount_target

5 years agoEnsure /etc/timezone also includes the TIMEZONE setting
Michael Prokop [Wed, 25 Jul 2018 16:34:28 +0000 (18:34 +0200)]
Ensure /etc/timezone also includes the TIMEZONE setting

Quoting from the bug report:

| The timezone is currently setup in chroot-script:timezone(), but
| that function only sets up /etc/localtime but not /etc/timezone.
| The problem is that you end up with one set to Europe/Vienna and
| the other set to Etc/UTC.
|
| This can greatly confuse the system, due to some libraries/tools
| parsing the former, and other the latter.
|
| So that function should probably also update /etc/timezone, with
| the TIMEZONE value.

So write the $TIMEZONE setting to /etc/timezone.

Closes: #904607
Thanks: Guillem Jover <gjover@sipwise.com>

5 years agotravis: run tests from inside VM + support test execution outside of Travis CI
Michael Prokop [Wed, 25 Jul 2018 17:51:03 +0000 (19:51 +0200)]
travis: run tests from inside VM + support test execution outside of Travis CI

This is a big improvement, because we can now communicate with
the running VM, including executing processes inside the VM, like
running goss directly from inside the VM.

While at it also adjust travis/execute.sh to be able to run it
*locally* as well. We now don't have to necessarily push to Travis
CI, which also serves to be useful when developing new features.

Thanks: Christian Hofstaedtler <zeha@debian.org> for helping me with the serial console handling

5 years agoSimplify module loading
Chris Hofstaedtler [Wed, 25 Jul 2018 18:34:24 +0000 (20:34 +0200)]
Simplify module loading

This works fine on stretch.

5 years agoInitial VM test builds on TravisCI
Michael Prokop [Tue, 24 Jul 2018 10:21:21 +0000 (12:21 +0200)]
Initial VM test builds on TravisCI

We're starting a Docker container with Debian/stretch, installing
the Debian package build result (generated via travis.debian.net)
of grml-debootstrap inside it. Then execute grml-debootstrap,
installing to a VM file. Finally boot the generated VM file via
qemu.

We use stdio of qemu's serial console to check for the boot prompt
of the installed Debian system, using goss for running the actual
checks.

5 years agoImprove checks to make sure loop and dm-mod module are present
Darshaka Pathirana [Tue, 24 Jul 2018 11:34:45 +0000 (13:34 +0200)]
Improve checks to make sure loop and dm-mod module are present

This fix was triggered because running --vmfile to create a virtual
machine image file caused the following error:

| device-mapper: reload ioctl on loop1p1p1 failed: Device or resource busy
| create/reload failed on loop1p1p1

This was caused because kpartx was run twice. The first run was used to test if
the Device-mapper was ready and the second run was actually add the partition
mappings. This used to fail under some circumstances.

5 years agoUse travis.debian.net for travis builds
Michael Prokop [Mon, 23 Jul 2018 06:57:20 +0000 (08:57 +0200)]
Use travis.debian.net for travis builds

While at it drop irrelevant stuff from .travis.yml.

Thanks Chris Lamb <lamby@debian.org> for https://travis.debian.net/ \o/

5 years agoSwitch default mirror from httpredir.debian.org to deb.debian.org
Michael Prokop [Mon, 23 Jul 2018 07:07:30 +0000 (09:07 +0200)]
Switch default mirror from httpredir.debian.org to deb.debian.org

httpredir.debian.org forwards to deb.debian.org
nowadays, provided by Fastly and Amazon CloudFront.

5 years agoDrop cmdlineopts.sh references from build system
Michael Prokop [Mon, 23 Jul 2018 06:55:34 +0000 (08:55 +0200)]
Drop cmdlineopts.sh references from build system

Also drop tests/test_cmdlineopts.sh, it reports
success even though it can't even source the fileā€¦

5 years agoFurther fixes for shellcheck v0.5.0
Michael Prokop [Sun, 22 Jul 2018 17:24:54 +0000 (19:24 +0200)]
Further fixes for shellcheck v0.5.0

Fix issues not yet found with shellcheck v0.4.4

5 years agoAdd missing vim folding markers
Michael Prokop [Sun, 22 Jul 2018 17:19:14 +0000 (19:19 +0200)]
Add missing vim folding markers

5 years agoIntegrate cmdlineopts.clp into grml-debootstrap
Michael Prokop [Sun, 22 Jul 2018 17:18:29 +0000 (19:18 +0200)]
Integrate cmdlineopts.clp into grml-debootstrap

This makes our life easier with shellcheck

5 years agoFix shellcode issues
Michael Prokop [Sun, 22 Jul 2018 15:04:53 +0000 (17:04 +0200)]
Fix shellcode issues

Would be nice to avoid the shellcheck ignores overall, though I
don't want to break backwards compatibility with existing
configurations, so be as conservative as possible by ignoring
known incompatibilities (see esp. disable=SC2086).

5 years agoInitial travis integration, running shellcheck
Michael Prokop [Sun, 22 Jul 2018 14:50:32 +0000 (16:50 +0200)]
Initial travis integration, running shellcheck

5 years agoSuppress message if /boot/efi isn't considered a mountpoint
Michael Prokop [Fri, 13 Jul 2018 13:18:17 +0000 (15:18 +0200)]
Suppress message if /boot/efi isn't considered a mountpoint

Avoid the misleading error message if efi support isn't present,
by redirecting stderr to /dev/null as well.

5 years agoRelease new version 0.82 v0.82
Michael Prokop [Fri, 25 May 2018 11:48:31 +0000 (13:48 +0200)]
Release new version 0.82

5 years agoBump Standards-Version to 4.1.4
Michael Prokop [Fri, 25 May 2018 11:43:20 +0000 (13:43 +0200)]
Bump Standards-Version to 4.1.4

5 years agoSort packages files
Michael Prokop [Fri, 25 May 2018 11:02:46 +0000 (13:02 +0200)]
Sort packages files

5 years agoMerge remote-tracking branch 'remotes/origin/pr/97'
Michael Prokop [Fri, 25 May 2018 11:02:05 +0000 (13:02 +0200)]
Merge remote-tracking branch 'remotes/origin/pr/97'

6 years agoRelease new version 0.81 v0.81
Michael Prokop [Mon, 15 Jan 2018 09:58:58 +0000 (10:58 +0100)]
Release new version 0.81

6 years agoBump Standards-Version to 4.1.3
Michael Prokop [Mon, 15 Jan 2018 09:57:59 +0000 (10:57 +0100)]
Bump Standards-Version to 4.1.3

6 years agoAdd e2fsprogs to Depends
Michael Prokop [Mon, 15 Jan 2018 09:54:49 +0000 (10:54 +0100)]
Add e2fsprogs to Depends

Debian wants to make removing e2fsprogs from installations
possible.  Once e2fsprogs drops the "Essential: yes" flag
e2fsprogs's mkfs.ext4 binary won't necessarily be available any
longer, while we default to usage of mkfs.ext4 in
grml-debootstrap.

Thanks: Helmut Grohne <helmut@subdivi.de> for the bugreport
Closes: #887224

6 years agoRelease new version 0.80 v0.80
Michael Prokop [Fri, 8 Dec 2017 11:54:28 +0000 (12:54 +0100)]
Release new version 0.80

6 years agoBump Standards-Version to 4.1.2
Michael Prokop [Fri, 8 Dec 2017 11:53:46 +0000 (12:53 +0100)]
Bump Standards-Version to 4.1.2

6 years agoIdentify UUID of target system even if it's SWRAID or a mountpoint
Michael Prokop [Sat, 2 Dec 2017 08:25:19 +0000 (09:25 +0100)]
Identify UUID of target system even if it's SWRAID or a mountpoint

The `blkid -o udev` doesn't work for mountpoints.
Also we can't rely on setting the TARGET_UUID within
mkfs, as this might not even get executed.

Closes #100
Thanks: hex2a for reporting and testing

6 years agopacker: use latest VirtualBox Guest Additions ISO
Michael Prokop [Tue, 21 Nov 2017 15:10:23 +0000 (16:10 +0100)]
packer: use latest VirtualBox Guest Additions ISO

Using the default local Virtualbox Guest Additions ISO will result
in different builds depending on the system being used.
My Debian jessie system with Virtualbox 5.1.8-dfsg-6~bpo8+2
from jessie-backports/contrib is actually too old to build
stretch and newer as the kernel module can't be compiled.
So instead use a specific VBoxGuestAdditions ISO, currently
being the one recommended by upstream on https://www.virtualbox.org/

While at it:

* increase VM memory size from 512MB to 1GB during build, otherwise
  we can't even use a temporary apt cache directory and will fail with OOM

* check for build errors in virtualbox logs

* /var/log/VBoxGuestAdditions.log doesn't necessarily exist,
  so instead display the last 10 lines of the according log files
  that actually exist

6 years agopacker: use current Grml release 2017.05 for building
Michael Prokop [Thu, 16 Nov 2017 12:51:36 +0000 (13:51 +0100)]
packer: use current Grml release 2017.05 for building

6 years agopacker: add support for building Debian/buster
Michael Prokop [Thu, 16 Nov 2017 12:51:18 +0000 (13:51 +0100)]
packer: add support for building Debian/buster

6 years agoFix a bunch of typos
Michael Prokop [Sat, 23 Sep 2017 11:46:24 +0000 (13:46 +0200)]
Fix a bunch of typos

s/the the/the/
s/compability/compatibility/
s/formated/formatted/
s/addional/additional/

6 years agoRelease new version 0.79 v0.79
Michael Prokop [Thu, 17 Aug 2017 12:42:21 +0000 (14:42 +0200)]
Release new version 0.79

6 years agoBump Standards-Version to 4.0.1
Michael Prokop [Thu, 17 Aug 2017 12:40:12 +0000 (14:40 +0200)]
Bump Standards-Version to 4.0.1

6 years agoDepend on fdisk | util-linux (<< 2.29.2-3~)
Michael Prokop [Thu, 17 Aug 2017 12:38:45 +0000 (14:38 +0200)]
Depend on fdisk | util-linux (<< 2.29.2-3~)

As recently announced on debian-devel-announce
(https://lists.debian.org/debian-devel-announce/2017/08/msg00005.html)
packages who need any of sfdisk, cfdisk or fdisk will need to add
a dependency on the new fdisk package.

Closes: #872219
Thanks: Andreas Henriksson <andreas@fatal.se>

6 years agoAdd documentation for --defaultinterfaces command line option
Darshaka Pathirana [Fri, 28 Jul 2017 22:34:20 +0000 (00:34 +0200)]
Add documentation for --defaultinterfaces command line option

Closes: grml/grml-debootstrap#103

6 years agoUpdate /dev and /dev/pts mount from --bind to proper fs type
Bigo [Sun, 9 Jul 2017 11:41:24 +0000 (12:41 +0100)]
Update /dev and /dev/pts mount from --bind to proper fs type

7 years agoone package per line
Patrick Schleizer [Tue, 7 Feb 2017 19:37:10 +0000 (19:37 +0000)]
one package per line

7 years agoRelease new version 0.78 v0.78
Michael Prokop [Thu, 26 Jan 2017 00:18:33 +0000 (01:18 +0100)]
Release new version 0.78

7 years agoDebian stretch is the new default release
Michael Prokop [Thu, 26 Jan 2017 00:02:54 +0000 (01:02 +0100)]
Debian stretch is the new default release

Update documentation accordingly, also related to squeeze EOL

7 years agoDon't generate rootfs entry in /etc/fstab if we don't know its UUID [Closes: issue2182]
Michael Prokop [Wed, 25 Jan 2017 23:46:41 +0000 (00:46 +0100)]
Don't generate rootfs entry in /etc/fstab if we don't know its UUID [Closes: issue2182]

With a command line like:

  grml-debootstrap --grub /dev/sda -t /media/sda1 ...

the resulting fstab gets:

  /media/sda1 /  auto    defaults,errors=remount-ro 0   1

which is for sure unwanted. So don't such an entry in the fstab
if we lack details about the underlying rootfs and instead warn
the user that this *might* be a problem.

7 years agoDrop sysfsutils from default software package list [Closes: issue2240]
Michael Prokop [Tue, 24 Jan 2017 22:03:00 +0000 (23:03 +0100)]
Drop sysfsutils from default software package list [Closes: issue2240]

sysfsutils was reported to take 2.5 seconds during system
startup.  Also the package is maintained by the Debian QA Group
and isn't useful and relevant enough to justify being part of the
default software selection.

Thanks to PaulePanter for the hint on IRC.

diff --git a/packages b/packages
index c4b7806..72433b6 100644
--- a/packages
+++ b/packages
@@ -1,7 +1,7 @@
 locales console-data console-common
 initramfs-tools mdadm lvm2
 grub-pc os-prober
-bzip2 file less lsof most pciutils resolvconf screen ssh strace sysfsutils usbutils vim w3m zsh
+bzip2 file less lsof most pciutils resolvconf screen ssh strace usbutils vim w3m zsh
 rsync
 postfix
 lsb-release

7 years agodon't fiddle around with /etc/hosts
Evgeni Golov [Tue, 24 Jan 2017 21:53:56 +0000 (22:53 +0100)]
don't fiddle around with /etc/hosts

netbase generates a nice /etc/hosts for us since squeeze.
for the weird case it did not (ohai lenny!), deploy the version
netbase in stretch has.

Fixes: #94

7 years agoRelease new version 0.77 v0.77
Michael Prokop [Tue, 24 Jan 2017 20:37:24 +0000 (21:37 +0100)]
Release new version 0.77

7 years agoHonor GRUB_DISABLE_LINUX_UUID=true for all Debian releases
Michael Prokop [Tue, 24 Jan 2017 20:33:53 +0000 (21:33 +0100)]
Honor GRUB_DISABLE_LINUX_UUID=true for all Debian releases

There's no point in having a release specific check when
checking configuration setting for GRUB_DISABLE_LINUX_UUID.
So if GRUB_DISABLE_LINUX_UUID is set to "true" then always
honor it.

Thanks: hex2a for the initial patch (see PR #96)
Closes grml/grml-debootstrap#87

7 years agoForbid xsltproc to use network for building
Christian Hofstaedtler [Sun, 18 Dec 2016 18:08:09 +0000 (18:08 +0000)]
Forbid xsltproc to use network for building

7 years agoBump debhelper compat level to 10
Christian Hofstaedtler [Sun, 18 Dec 2016 18:06:13 +0000 (18:06 +0000)]
Bump debhelper compat level to 10

7 years agoUpdate my email address
Christian Hofstaedtler [Sun, 18 Dec 2016 18:05:36 +0000 (18:05 +0000)]
Update my email address

7 years agoExport TARGET_HOSTNAME before running post-scripts
Stefan Schlesinger [Thu, 15 Dec 2016 17:45:08 +0000 (18:45 +0100)]
Export TARGET_HOSTNAME before running post-scripts

Export $HOSTNAME in TARGET_HOSTNAME so one is able to do customize things based upon the hostname of the installed machine (eg. to populate /e/n/interfaces by doing a external database lookup).

7 years agoRelease new version 0.76 v0.76
Michael Prokop [Thu, 22 Sep 2016 12:25:57 +0000 (14:25 +0200)]
Release new version 0.76

7 years agoBump Standards-Version to 3.9.8
Michael Prokop [Thu, 22 Sep 2016 12:25:11 +0000 (14:25 +0200)]
Bump Standards-Version to 3.9.8

7 years agoSwitch Homepage + Vcs-Browser fields to https
Michael Prokop [Thu, 22 Sep 2016 12:24:51 +0000 (14:24 +0200)]
Switch Homepage + Vcs-Browser fields to https

7 years agoIgnore packer/packer_cache during dpkg-source generation
Michael Prokop [Thu, 22 Sep 2016 12:08:21 +0000 (14:08 +0200)]
Ignore packer/packer_cache during dpkg-source generation

Otherwise if packer/packer_cache contains the cached ISO files
the generated grml-debootstrap_*.tar.xz contains all the cache
files which is clearly unwanted.

Thanks: Guillem Jover for the hint

7 years agoDisable ^metadata_csum' feature when creating ext fs for releases <= jessie [Closes...
Michael Prokop [Thu, 22 Sep 2016 11:26:27 +0000 (13:26 +0200)]
Disable ^metadata_csum' feature when creating ext fs for releases <= jessie [Closes: issue2178]

Otherwise fsck complains about:

| /dev/mapper/.... has unsupported feature(s): metadata_csum
| e2fsck: Get a newer version of e2fsck!
| fsck failed with error code 8.