grml-autoconfig.git
7 months agoRelease new version 0.19.0 master v0.19.0
Michael Prokop [Thu, 21 Mar 2019 15:32:02 +0000 (16:32 +0100)]
Release new version 0.19.0

7 months agoDisable shunit2 tests, failing in current Debian/unstable environments
Michael Prokop [Thu, 21 Mar 2019 13:54:55 +0000 (14:54 +0100)]
Disable shunit2 tests, failing in current Debian/unstable environments

It seems to be better with shunit2 from git (commit 7689785,
https://raw.githubusercontent.com/kward/shunit2/master/shunit2),
but I couldn't trace down the issue yet, so disable the tests
for the time being. :-/

8 months agoBump debian/compat to 10 and adjust Build-Depends on debhelper accordingly
Michael Prokop [Thu, 21 Mar 2019 11:32:46 +0000 (12:32 +0100)]
Bump debian/compat to 10 and adjust Build-Depends on debhelper accordingly

8 months agoBump Standards-Version to 4.3.0
Michael Prokop [Thu, 21 Mar 2019 11:32:31 +0000 (12:32 +0100)]
Bump Standards-Version to 4.3.0

8 months agoDrop deprecated doc/grml-autoconfig.200905.txt
Michael Prokop [Thu, 21 Mar 2019 09:00:46 +0000 (10:00 +0100)]
Drop deprecated doc/grml-autoconfig.200905.txt

It's 10 years since we switched the default behavior of grml-autoconfig,
time to pull the plug.

8 months agoSwitch default mount point from /lib/live/mount/medium to /run/live/medium
Michael Prokop [Thu, 21 Mar 2019 08:54:45 +0000 (09:54 +0100)]
Switch default mount point from /lib/live/mount/medium to /run/live/medium

In commit 0d878d3a679 of live-boot(-grml)
("Simplify mount point handling by using /run/live instead of /lib/live/mount")
the mountpath of /lib/live/mount/medium was moved towards /run/live/medium.

Commit c6a17c7b41b of live-boot(-grml) provides a backward compatibility
rbind mount, but occasionally there seems to be a regression somewhere
during boot (see https://github.com/grml/live-boot-grml/issues/10), and
the rbind mount will be deprecated and removed before the bullseye
(Debian 11) release.

Layout changes over time:

* /cdrom: old linuxrc approach
* /live/image for initramfs layout until December 2012
* /lib/live/mount/medium for initramfs layout since December 2012
* /run/live/medium for initramfs layout since December 2018

Drop support for everything but /run/live/medium and
/lib/live/mount/medium, while at it.

Also noticed that save-config wasn't properly handling the location of
the rootfs and overlay mount points, adjusted while at it.

Closes: grml/live-boot-grml#10

10 months agoRelease new version 0.18.1 v0.18.1
Michael Prokop [Sat, 29 Dec 2018 15:22:07 +0000 (16:22 +0100)]
Release new version 0.18.1

10 months agoconfig_language: rely on console-setup for keyboard + font handling
Michael Prokop [Sat, 29 Dec 2018 14:31:54 +0000 (15:31 +0100)]
config_language: rely on console-setup for keyboard + font handling

Our old approach with running loadkeys, setting console font and
invoking unicode_start via grml-autoconfig is incomplete for nowadays'
environments.

We tried to fix that by changing the order in which we set up the fonts,
runnning loadkeys and finally invoking unicode_start (see commit
c820a66a69). But this changed only the behavior on tty1, the other
consoles still had problems when trying to display unicode characters
(see e.g. `systemctl status` output).

Instead when running under systemd rely on console-setup, by assuming
/etc/default/console-setup is set up as needed (implemented in grml-live
>=0.33.4) and adjusting /etc/default/keyboard according to
keyboard=.../lang=... boot options. Finally we invoke the console-setup
service.  (We might want to handle this outside of grml-autoconfig in
the future, but this approach for now guarantees to execute this in the
right order and not spit on the console at the end of the boot process).

Closes: grml/grml-autoconfig#9, grml/grml#50
Thanks: Darshaka Pathirana for debugging this

11 months agoRelease new version 0.18.0 v0.18.0
Michael Prokop [Fri, 14 Dec 2018 10:27:54 +0000 (11:27 +0100)]
Release new version 0.18.0

11 months agobrltty: start brltty service instead of invoking /lib/brltty/brltty.sh
Michael Prokop [Fri, 14 Dec 2018 10:11:40 +0000 (11:11 +0100)]
brltty: start brltty service instead of invoking /lib/brltty/brltty.sh

The /lib/brltty/brltty.sh script doesn't seem to work as such any longer
to start the service.  When starting brltty via `systemctl start brltty`
it at least starts (I'm not sure it's actually working for users of
braille devices., but don't know how to verify it on my own).

Closes: https://github.com/grml/grml/issues/58

11 months agoEnsure haveged is running before ssh service is invoked
Michael Prokop [Thu, 13 Dec 2018 13:58:00 +0000 (14:58 +0100)]
Ensure haveged is running before ssh service is invoked

The random number generator might take quite some while until we reach
state `random: crng init done`. If ssh service is started *before* crng
is done then ssh service startup blocks system boot until enough entropy
is available.

By starting haveged (Linux entropy source using the HAVEGE algorithm)
before ssh service we avoid this.

Since haveged is in our GRMLBASE software selection we can assume that
it's present by default.

FTR, it might be useful to start haveged all the time, but before
going that route let's try whether having it for SSH service is enough.

11 months agoDrop deprecated loadcpufreq/cpufrequtils, no longer relevant
Michael Prokop [Thu, 13 Dec 2018 09:58:03 +0000 (10:58 +0100)]
Drop deprecated loadcpufreq/cpufrequtils, no longer relevant

The cpufreq drivers are autoloaded and the powersave/ondemand driver
is mature enough. The linux-cpupower tools provide the binaries
as replacement for what cpufrequtils provided so far.

Also see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=877016

Thanks: Michael Biebl for the pointer
Closes: https://github.com/grml/grml/issues/51

12 months agoRelease new version 0.17.4 v0.17.4
Michael Prokop [Thu, 25 Oct 2018 14:01:45 +0000 (16:01 +0200)]
Release new version 0.17.4

12 months agoFix unicode font issue under systemd by ensuring proper setup order
Michael Prokop [Thu, 25 Oct 2018 13:55:31 +0000 (15:55 +0200)]
Fix unicode font issue under systemd by ensuring proper setup order

We need to set up the fonts and only *then* run loadkeys,
and finally invoke unicode_start. Otherwise the unicode
setup is incomplete and fonts aren't displayed properly.

Found hint inside https://bugs.freedesktop.org/show_bug.cgi?id=80685 +
https://cgit.freedesktop.org/systemd/systemd/commit/?id=abee28c56d

Thanks to Sipwise for sponsoring my development time.
Closes Sipwise internal ticket TT#17028.

Closes: https://github.com/grml/grml/issues/50

14 months agoRelease new version 0.17.3 v0.17.3
Michael Prokop [Fri, 14 Sep 2018 07:06:55 +0000 (09:06 +0200)]
Release new version 0.17.3

14 months agoBump Standards-Version to 4.2.1
Michael Prokop [Fri, 14 Sep 2018 07:06:37 +0000 (09:06 +0200)]
Bump Standards-Version to 4.2.1

14 months agoDon't output failures when trying to load efivars
Michael Prokop [Fri, 14 Sep 2018 07:05:14 +0000 (09:05 +0200)]
Don't output failures when trying to load efivars

When running inside a system without efi support we get:

| modprobe: ERROR: could not insert 'efivars': No such device

18 months agoRelease new version 0.17.2 v0.17.2
Michael Prokop [Fri, 11 May 2018 07:14:05 +0000 (09:14 +0200)]
Release new version 0.17.2

18 months agoImprove VM detection when running inside recent versions of VirtualBox
Michael Prokop [Fri, 11 May 2018 07:07:48 +0000 (09:07 +0200)]
Improve VM detection when running inside recent versions of VirtualBox

When running e.g. inside VirtualBox 5.2.6 + 5.2.10 on Windows
virt-what and imvirt report different results than expected, as in:

| # virt-what
| virtualbox
| kvm
|
| # imvirt
| KVM

Explicitely check for VMware, KVM + VirtualBox and don't stop
at first hit. Check for expected VM technology within its output
instead of relying on a single string comparison.

Thanks: Martin Besser for the bugreport and providing the relevant output

22 months agoRelease new version 0.17.1 v0.17.1
Michael Prokop [Tue, 2 Jan 2018 11:28:19 +0000 (12:28 +0100)]
Release new version 0.17.1

22 months agoMake interactive scripts work
Marcos Mello [Tue, 2 Jan 2018 10:19:46 +0000 (08:19 -0200)]
Make interactive scripts work

Effectively connect stdin/stdout/stderr to /dev/console. Fixes grml/grml#71.

2 years agoRelease new version 0.17.0 v0.17.0
Michael Prokop [Fri, 6 Oct 2017 11:46:35 +0000 (13:46 +0200)]
Release new version 0.17.0

2 years agoBump Standards-Version to 4.1.1
Michael Prokop [Fri, 6 Oct 2017 11:45:58 +0000 (13:45 +0200)]
Bump Standards-Version to 4.1.1

2 years agoNever start systemd services in background
Michael Prokop [Fri, 6 Oct 2017 11:01:10 +0000 (13:01 +0200)]
Never start systemd services in background

Only invoke (specific) services in background when not running
systemd, otherwise services just might not get started. There
seems to be a race-condition in the init script of gpm which
doesn't properly run under systemd when invoked via "systemctl
start gpm" in background.  This should be solved once there's a
proper gpm systemd unit file.

Thanks: Leo Bergolth for the bugreport

Closes grml/grml#76

2 years agoAdd x11vnc to Recommends
Michael Prokop [Fri, 6 Oct 2017 10:21:03 +0000 (12:21 +0200)]
Add x11vnc to Recommends

Related to grml/grml#62

2 years agoRelease new version 0.16.1 v0.16.1
Michael Prokop [Thu, 7 Sep 2017 12:30:10 +0000 (14:30 +0200)]
Release new version 0.16.1

2 years agoFor access to efivars filesystem it needs to be of type efivarfs
Michael Prokop [Thu, 7 Sep 2017 12:29:19 +0000 (14:29 +0200)]
For access to efivars filesystem it needs to be of type efivarfs

2 years agoRelease new version 0.16.0 v0.16.0
Michael Prokop [Fri, 1 Sep 2017 15:52:19 +0000 (17:52 +0200)]
Release new version 0.16.0

2 years agoBump Standards-Version to 4.0.1
Michael Prokop [Fri, 1 Sep 2017 15:51:45 +0000 (17:51 +0200)]
Bump Standards-Version to 4.0.1

2 years agoMake sure mokutil reports actual Secure Boot status even if not running under systemd
Michael Prokop [Fri, 1 Sep 2017 15:50:45 +0000 (17:50 +0200)]
Make sure mokutil reports actual Secure Boot status even if not running under systemd

systemd mounts /sys/firmware/efi/efivars automatically, but if we
are not running under systemd (but file-rc instead in our case)
then mokutil doesn't work as needed as it relies on
/sys/firmware/efi/efivars (while /sys/firmware/efi/vars would
exist :-/).

2 years agoRelease new version 0.15.9 v0.15.9
Michael Prokop [Sun, 28 May 2017 17:55:12 +0000 (19:55 +0200)]
Release new version 0.15.9

2 years agostartx: share selected window manager via /var/run/grml-x/window-manager
Michael Prokop [Sun, 28 May 2017 17:49:48 +0000 (19:49 +0200)]
startx: share selected window manager via /var/run/grml-x/window-manager

Closes grml/grml#44

2 years agoRelease new version 0.15.8 v0.15.8
Michael Prokop [Fri, 26 May 2017 21:38:52 +0000 (23:38 +0200)]
Release new version 0.15.8

2 years agoUpdate instructions for manual LVM start + fix LVM detection for lvm boot option
Michael Prokop [Fri, 26 May 2017 21:15:14 +0000 (23:15 +0200)]
Update instructions for manual LVM start + fix LVM detection for lvm boot option

service lvm2-lvmetad doesn't do what we assumed it does.
Instead 'Start lvm2-pvscan@name' allows startup of the
given LV or VG (which is actually nice).

Also we need to explicitely execute `vgchange -a` to
start any present LVs.

Closes grml/grml#31

2 years agoUpdate instructions for manual mdadm start, drop --auto=yes --symlink=no from swraid
Michael Prokop [Fri, 26 May 2017 21:13:17 +0000 (23:13 +0200)]
Update instructions for manual mdadm start, drop --auto=yes --symlink=no from swraid

The "--auto=yes --symlink=no" options shouldn't be relevant any
longer (symlink actually doesn't seem to do what it's supposed).

The "mdmonitor" service doesn't do what we thought it does,
so instead recommend usage of "mdadm --assemble --scan" instead.

Related to grml/grml#45

2 years agoRelease new version 0.15.7 v0.15.7
Michael Prokop [Wed, 24 May 2017 07:17:57 +0000 (09:17 +0200)]
Release new version 0.15.7

2 years agoFix the amixer scontrols parser in config_mixer
Darshaka Pathirana [Sun, 21 May 2017 13:10:49 +0000 (15:10 +0200)]
Fix the amixer scontrols parser in config_mixer

The internal field seperator (IFS) got messed up in commit# 1043bc00e.
While at it, fixed all IFS variables to make it more readable and to
prevent breakage by (automatic) indentation.

This is not (yet) POSIX though, but we are in zsh anyway.

Closes grml/grml#40

2 years agoGet rid of ugly startx helper script and start X on tty7/vt7
Darshaka Pathirana [Sat, 20 May 2017 02:02:18 +0000 (04:02 +0200)]
Get rid of ugly startx helper script and start X on tty7/vt7

The startx helper script was used to get around some permission problems
which were caused by grml-runtty. As we switched to agetty, we also can
get rid of this ugly hack.

Furthermore we decided to start X on tty7/vt7 (if the bootoption startx
is given) as tty6 "is especially reserved for auto-spawned gettys":

 This is done in order to ensure that there's always a way to get a text
 login, even if due to fast user switching X took possession of more
 than 5 VTs.

See: http://0pointer.de/blog/projects/serial-console.html

Relates to grml/grml#20

2 years agoDrop config_debug, not working under systemd as intended
Michael Prokop [Fri, 19 May 2017 13:22:20 +0000 (15:22 +0200)]
Drop config_debug, not working under systemd as intended

Startup of shells during bootup under systemd doesn't work
as with file-rc and actually causes ugly error messages.
systemd has its own mechanism and we should rely on that.

With this change also drop the /proc/sys/kernel/printk related
code, this *shouldn't* be relevant anymore.

Closes grml/grml#3

2 years agoRelease new version 0.15.6 v0.15.6
Michael Prokop [Fri, 19 May 2017 13:07:57 +0000 (15:07 +0200)]
Release new version 0.15.6

2 years agoDrop config_stats
Michael Prokop [Fri, 19 May 2017 12:25:11 +0000 (14:25 +0200)]
Drop config_stats

The stats feature was integrated to collect some basic
information about usage of Grml. While we anonymise
the data we also lack the according information *why*
things are used in a way they are used (e.g. since
we cut of any arguments to bootoptions we don't
know the actual settings for e.g. vga=xxx).

What we learned from the stats is that grml32 is still
in usage way more often than expected, though a leading
majority of the systems support 64bit, so it's unclear
why those users still use the 32bit version.

While we thought it was a good idea back then we think
different nowadays and users of Grml don't expect such
a behavior as default. So don't make it even opt-in but
just drop it overall.

2 years agoDrop deprecated and unsupported CONFIG_WELCOME configuration
Michael Prokop [Fri, 19 May 2017 12:23:32 +0000 (14:23 +0200)]
Drop deprecated and unsupported CONFIG_WELCOME configuration

2 years agoDon't warn if SecureBoot is not enabled, instead only inform about current state
Michael Prokop [Tue, 16 May 2017 22:37:15 +0000 (00:37 +0200)]
Don't warn if SecureBoot is not enabled, instead only inform about current state

If SecureBoot isn't enabled this could very well be by
intention, so don't warn about it, but only make it
an informational message.

Closes grml/grml#24

2 years agoDon't complain about missing amixer binary on tty
Michael Prokop [Tue, 16 May 2017 22:33:35 +0000 (00:33 +0200)]
Don't complain about missing amixer binary on tty

On grml-small we don't ship amixer (being part of alsa-utils),
since that would add ~8.5MB of additional disk space usage.
Avoid the error message by sending a message only to syslog.

Closes grml/grml#24

2 years agoRelease new version 0.15.5 v0.15.5
Michael Prokop [Fri, 12 May 2017 18:58:22 +0000 (20:58 +0200)]
Release new version 0.15.5

2 years agoDo not run sysv specific serial console setup under systemd
Michael Prokop [Fri, 12 May 2017 18:56:44 +0000 (20:56 +0200)]
Do not run sysv specific serial console setup under systemd

See grml/grml#21

2 years agoEnsure that grml-autoconfig service is running before tty1 is enabled
Michael Prokop [Fri, 12 May 2017 18:56:03 +0000 (20:56 +0200)]
Ensure that grml-autoconfig service is running before tty1 is enabled

Thanks: Darshaka Pathirana <dpat@syn-net.org>
Closes grml/grml#19

2 years agoReplace dependency on console-terminus with console-setup + console-setup-linux
Michael Prokop [Fri, 12 May 2017 15:05:04 +0000 (17:05 +0200)]
Replace dependency on console-terminus with console-setup + console-setup-linux

console-terminus is purely virtual.

Inside console-setup-linux's udev rule there's a rule
depending on /etc/console-setup/cached_setup_font.sh which
itself is provided only via console-setup, otherwise it
fails with:

| systemd-udev: failed to execute '/etc/console-setup/cached_setup_font.sh' '/etc/console-setup/cache_setup_font.sh': No such file or directory

Closes grml/grml#8

2 years agoRelease new version 0.15.4 v0.15.4
Michael Prokop [Fri, 5 May 2017 14:58:49 +0000 (16:58 +0200)]
Release new version 0.15.4

2 years agoFix generation of startx helper script
Darshaka Pathirana [Fri, 5 May 2017 14:20:29 +0000 (16:20 +0200)]
Fix generation of startx helper script

`/etc/init.d/startx` is created dynamically on startup.  The $ of ${TTY}
was not escaped so that when generating the helper script the variable
was evaluated which lead to an empty output.

The script fixes permission problems of /dev/ttyX when grml-x is started
via sudo.

Usually /dev/ttyX is owned by root:tty and has 0620 permission but
grml-runtty changes ownership to root:root to overcome other problems.
(It is not clear if these problems are still present and if we still
have to do this but for now we provide this helper script).

${WINDOWMANAGER} is evaluated on generation and can be (and usually is)
empty. But when starting grml-x with the parameter "" this leads to an
immediate exit of grml-x. Removed the surrounding "".

Closes grml/grml#1

2 years agoRelease new version 0.15.3 v0.15.3
Michael Prokop [Fri, 5 May 2017 08:51:21 +0000 (10:51 +0200)]
Release new version 0.15.3

2 years agoMake startx boot option work with systemd
Darshaka Pathirana [Mon, 24 Apr 2017 00:07:08 +0000 (02:07 +0200)]
Make startx boot option work with systemd

The desired behavior (with systemd and the boot option "startx") is to start
the X window system automatically.

This is achieved by getty@tty6.service which starts grml-x as user "grml" on
vt6/tty6 and switches back to vt1/tty1 after exit. (This alone could be
achieved with systemd-unit option Type=oneshot and Restart=no). But when
switiching back to vt6/tty6 (again) we would like to start a zsh (for user
"grml") and restart the zsh if exited. That means that grml-x should only be
started on the very first run and the zsh on every other.

We could not figure out how to change the systemd-unit option "Type"
dynamically, so we kept it on "idle" which means that the "actual execution of
the service binary is delayed until all active jobs are dispatched". That's why
we need to switch to vt6/tty6 (via grml-autoconfig) iff the boot option
"startx" is given.

We also do not know yet how to dynamically change the behavior of the
systemd-unit in a safe way. Rewriting the unit-file (override.conf) after
grml-x exits (i.e. with ExecStopPost) doesn't seem to work reliably (especially
when calling "systemctl daemon-reload" in it). That's why we use a state-file
(/var/run/grml_startx.started) to start up grml-x on the first call and the zsh
else.

This also means that grml-x is started automatically when switching to vt6/tty6
manually (when no "startx" boot option was given) once and the zsh on the
following calls.

Closes grml/grml#1

2 years agoAdjust mdadm-raid + lvm2 messages and service handling for usage with systemd
Michael Prokop [Fri, 21 Apr 2017 12:10:10 +0000 (14:10 +0200)]
Adjust mdadm-raid + lvm2 messages and service handling for usage with systemd

The mdadm-raid unit is masked under systemd, instead it's necessary
to start mdmonitor.

Also lvm2 is masked and needs to be activated via lvm2-lvmetad instead.

2 years agoRelease new version 0.15.2 v0.15.2
Michael Prokop [Thu, 20 Apr 2017 20:24:53 +0000 (22:24 +0200)]
Release new version 0.15.2

2 years agoProvide information about whether Secure Boot is enabled or not
Michael Prokop [Thu, 20 Apr 2017 10:09:55 +0000 (12:09 +0200)]
Provide information about whether Secure Boot is enabled or not

2 years agoRe-enable GPM service startup
Michael Prokop [Thu, 20 Apr 2017 10:12:12 +0000 (12:12 +0200)]
Re-enable GPM service startup

It's still needed, both for file-rc and systemd systems.

2 years agoRelease new version 0.15.1 v0.15.1
Michael Prokop [Fri, 24 Feb 2017 12:46:31 +0000 (13:46 +0100)]
Release new version 0.15.1

2 years agosystemd/grml-autoconfig.service: switch to WantedBy=grml-boot.target
Michael Prokop [Fri, 24 Feb 2017 12:30:07 +0000 (13:30 +0100)]
systemd/grml-autoconfig.service: switch to WantedBy=grml-boot.target

We define our own systemd target, so enable grml-autoconfig
in the according target.

Closes grml/release-planning#2 @ GH

2 years agoUse https for Homepage + Vcs-Browser entries
Michael Prokop [Fri, 24 Feb 2017 12:18:01 +0000 (13:18 +0100)]
Use https for Homepage + Vcs-Browser entries

2 years agoNo longer depend on acpid, skip acpi(d) specific stuff under systemd
Michael Prokop [Fri, 24 Feb 2017 10:16:26 +0000 (11:16 +0100)]
No longer depend on acpid, skip acpi(d) specific stuff under systemd

systemd provides all the relevant bits via logind, so let's
all our acpi magic when running under systemd.

Closes grml/release-planning#4 @ GH

2 years agoRelease new version 0.15.0 v0.15.0
Michael Prokop [Fri, 13 Jan 2017 13:42:39 +0000 (14:42 +0100)]
Release new version 0.15.0

2 years agoBuild-Depend on debhlper >= 9
Michael Prokop [Fri, 13 Jan 2017 13:42:15 +0000 (14:42 +0100)]
Build-Depend on debhlper >= 9

2 years agoBump debian/compat to 9
Michael Prokop [Fri, 13 Jan 2017 13:41:55 +0000 (14:41 +0100)]
Bump debian/compat to 9

2 years agoBump Standards-Version to 3.9.8
Michael Prokop [Fri, 13 Jan 2017 13:41:43 +0000 (14:41 +0100)]
Bump Standards-Version to 3.9.8

2 years agoDrop grml_nocolors + grml_colors magic, instead rely on lsb-functions
Michael Prokop [Fri, 13 Jan 2017 12:56:19 +0000 (13:56 +0100)]
Drop grml_nocolors + grml_colors magic, instead rely on lsb-functions

grml-etc-core git commit 2ee956e includes color handling
inside lsb-functions, simplify its usage inside grml-autoconfig's
autoconfig.functions therefore.

2 years agoSource /etc/grml_nocolors with nocolor boot option mika/systemd
Michael Prokop [Fri, 13 Jan 2017 12:37:50 +0000 (13:37 +0100)]
Source /etc/grml_nocolors with nocolor boot option

Otherwise we still end up with colors in the output because
$NORMAL isn't defined properly.

2 years agoRely on /proc/1/comm to identify running systemd
Michael Prokop [Fri, 13 Jan 2017 12:36:20 +0000 (13:36 +0100)]
Rely on /proc/1/comm to identify running systemd

/proc/[pid]/comm is available since Linux 2.6.33 so
we should be able to rely on that.

Inside /proc/1/cmdline might end up additional boot options,
e.g. when booting with "nocolor" boot option it ends up as
"/sbin/initnocolor" and then our check breaks.

2 years agoIntroduce service_wrapper to avoid direct /etc/init.d calls
Michael Prokop [Fri, 30 Dec 2016 23:02:28 +0000 (00:02 +0100)]
Introduce service_wrapper to avoid direct /etc/init.d calls

While at it drop support for any other syslog daemon than rsyslog.
rsyslog is the package we ship via GRMLBASE anyway.

Known issues:

* /etc/init.d/loadcpufreq depends on systemd-sysv-generator (which
  we disable via grml-live to avoid automatic LSB script startups)
* startx boot option doesn't work yet

2 years agoEnable acpid.socket if we're running under systemd
Michael Prokop [Fri, 30 Dec 2016 22:36:05 +0000 (23:36 +0100)]
Enable acpid.socket if we're running under systemd

2 years ago/etc/default/rcS no longer exists in recent initscripts versions
Michael Prokop [Fri, 30 Dec 2016 22:14:01 +0000 (23:14 +0100)]
/etc/default/rcS no longer exists in recent initscripts versions

Instead rely on /etc/adjtime for UTC vs localtime handling.

2 years agoInitial systemd support
Michael Prokop [Tue, 12 Jan 2016 10:46:06 +0000 (11:46 +0100)]
Initial systemd support

2 years agoDrop deprecated features
Michael Prokop [Fri, 4 Nov 2016 14:42:46 +0000 (15:42 +0100)]
Drop deprecated features

Those are all very outdated functions which either have
no purpose on nowadays systems or shouldn't have any users
anymore:

* config_configfs
* config_distcc
* config_fast
* config_fix_passwd
* config_fwtimeout
* config_fwtimeout
* config_ipv6
* config_ld_mod
* config_modem
* config_modules
* config_mouse
* config_small
* config_tohd
* config_wondershaper
* fix_unionfs

4 years agoRelease new version 0.14.0 v0.14.0
Michael Prokop [Thu, 11 Dec 2014 17:04:37 +0000 (18:04 +0100)]
Release new version 0.14.0

4 years agoconfig_cpu: set ondemand governor only if available
Michael Prokop [Thu, 11 Dec 2014 10:29:31 +0000 (11:29 +0100)]
config_cpu: set ondemand governor only if available

Nowadays we enable and use the ondemand governor by default in
our kernel configuration. More recent systems providing Intel
Haswell CPUs (e.g. the i7-3520M CPU as present in the Lenovo X230
laptops as well as the CPU present in IBM flex chassis) use
pstates/intel_pstate and disable the ondemand governor at all, so
only performance and powersave are available (unless you set
intel_pstate=disable at boot time).

Also see https://plus.google.com/+TheodoreTso/posts/2vEekAsG2QT
Thanks to Yves-Alexis Perez for the pointer.

5 years agoRelease new version 0.13.3 v0.13.3
Michael Prokop [Mon, 27 Oct 2014 23:46:34 +0000 (00:46 +0100)]
Release new version 0.13.3

5 years agoSupport getfile.retries=... boot option
Michael Prokop [Mon, 27 Oct 2014 22:29:36 +0000 (23:29 +0100)]
Support getfile.retries=... boot option

The netscript=... and netscript=... boot options might fail to
download the provided argument during bootup in certain
environments. Retrieving the IP address via DHCP might take just
too long (hello Spanning Tree Protocol!), so the last run of the
netscript retrieval is executed without having the network
configuration available yet.  Explicitly setting the number of
retries via getfile.retries=... to something higher than the
default (being 10) allows the user to work around this issue.

Thanks: Sipwise GmbH for sponsoring my development time
Thanks: Christian Hofstaedtler for reviewing

5 years agoBump Standards-Version to 3.9.6
Michael Prokop [Mon, 27 Oct 2014 21:05:58 +0000 (22:05 +0100)]
Bump Standards-Version to 3.9.6

5 years agoRelease new version 0.13.2 v0.13.2
Michael Prokop [Sat, 19 Apr 2014 21:27:19 +0000 (23:27 +0200)]
Release new version 0.13.2

5 years agoCode cleanup, drop config_dma + check_partitions [Closes: issue1305]
Michael Prokop [Sat, 19 Apr 2014 21:25:37 +0000 (23:25 +0200)]
Code cleanup, drop config_dma + check_partitions [Closes: issue1305]

This code shouldn't be needed since ages any longer, let's
try to get rid of it.

5 years agoRelease new version 0.13.1 v0.13.1
Michael Prokop [Wed, 2 Apr 2014 09:46:14 +0000 (11:46 +0200)]
Release new version 0.13.1

5 years agoDrop checks for "forensic" boot option
Michael Prokop [Wed, 2 Apr 2014 09:30:09 +0000 (11:30 +0200)]
Drop checks for "forensic" boot option

There's no need for checking for "forensic" boot option any longer,
since we can control all the boot options separately and the "forensic"
boot menu entry sets all the according boot options on its own
(see git commit 61d5ddd8de04 in grml-live.git).

5 years agoRelease new version 0.13.0 v0.13.0
Michael Prokop [Thu, 20 Mar 2014 15:12:50 +0000 (16:12 +0100)]
Release new version 0.13.0

5 years agoRun wrap-and-sort -a on debian directory
Michael Prokop [Thu, 20 Mar 2014 15:12:24 +0000 (16:12 +0100)]
Run wrap-and-sort -a on debian directory

5 years agoBump Standards-Version to 3.9.5
Michael Prokop [Thu, 20 Mar 2014 15:12:09 +0000 (16:12 +0100)]
Bump Standards-Version to 3.9.5

5 years agoAdded some extra information about DCS directory on a live medium
Andreas "Jimmy" Gredler [Tue, 18 Mar 2014 19:48:45 +0000 (12:48 -0700)]
Added some extra information about DCS directory on a live medium

5 years agoDrop code related to scripts handling on DCSDIR, breaking it for GRMLCFG labeled...
Andreas "Jimmy" Gredler [Sat, 15 Mar 2014 17:13:47 +0000 (10:13 -0700)]
Drop code related to scripts handling on DCSDIR, breaking it for GRMLCFG labeled devices

Removed again an if clause in the function which finds DCSDIR. It was
redundant as this case is handled before and it broke the use case of
running scripts on a GRMLCFG labeled device. Because it changed to
$DCSDIR instead of $DCSDIR/scripts.

5 years agoDrop .sp workaround, fix some typos in manpages and remove duplicated text
Andreas "Jimmy" Gredler [Sat, 15 Mar 2014 08:19:03 +0000 (01:19 -0700)]
Drop .sp workaround, fix some typos in manpages and remove duplicated text

Manpage was including the text .5v at the end of some paragraphs. This
was caused by an old hack in the Makefile which removed the text .sp,
which was accidently added to the end of some paragraphs. (sed -i
's/\.sp//') Looks like this hack is not needed any longer, when
disabling it the .5v disappears as well (which might have been the text
".sp 5v")

5 years agoRelease new version 0.12.1 v0.12.1
Michael Prokop [Tue, 25 Feb 2014 10:07:43 +0000 (11:07 +0100)]
Release new version 0.12.1

5 years agovbautomation takes shared folder name without prefix + improve timing
Michael Prokop [Tue, 25 Feb 2014 10:04:29 +0000 (11:04 +0100)]
vbautomation takes shared folder name without prefix + improve timing

Use VBoxControl to check for available shared folders.
By default the VBoxService starts up but it takes some time until
the automount folder is available, so give it some further time.

5 years agoRelease new version 0.12.0 v0.12.0
Michael Prokop [Mon, 24 Feb 2014 14:48:21 +0000 (15:48 +0100)]
Release new version 0.12.0

5 years agoSupport automatic execution of scripts on VirtualBox shared folders
Michael Prokop [Mon, 24 Feb 2014 14:24:22 +0000 (15:24 +0100)]
Support automatic execution of scripts on VirtualBox shared folders

If an executable /media/sf_automation/$distri is present (where
$distri defaults to "grml" if unset) it is automatically executed
during bootup. The '/media/sf_automation' directory corresponds
to a shared folder named "automation" inside VirtualBox (which
has the auto-mount option set inside the VirtualBox configuration
to be useful).

The feature can be disabled via boot option 'novbautomation' and
the path to the automation directory can be controlled via boot
option 'vbautomation' (e.g. 'vbautomation='/media/sf_foobar', so
don't forget the "/media/sf_").

This feature provides a nice way to automate things during bootup
inside VirtualBox without having to adjust any boot options,
while still being able to control the behaviour from the host
system via setup of shared folders.

5 years agoRelease new version 0.11.5 v0.11.5
Michael Prokop [Fri, 7 Feb 2014 07:58:56 +0000 (08:58 +0100)]
Release new version 0.11.5

5 years agoconfig_debs(): fix typo (s/Tring/Trying/)
Michael Prokop [Fri, 7 Feb 2014 07:58:17 +0000 (08:58 +0100)]
config_debs(): fix typo (s/Tring/Trying/)

5 years agoRelease new version 0.11.4 v0.11.4
Michael Prokop [Wed, 5 Feb 2014 12:14:14 +0000 (13:14 +0100)]
Release new version 0.11.4

5 years agoFix keyboard entries for lang=ch
Michael Prokop [Wed, 5 Feb 2014 12:09:40 +0000 (13:09 +0100)]
Fix keyboard entries for lang=ch

'setxkbmap de_CH' doesn't work, so go for 'ch'

5 years agoRelease new version 0.11.3 v0.11.3
Michael Prokop [Tue, 4 Feb 2014 12:53:17 +0000 (13:53 +0100)]
Release new version 0.11.3

5 years agoconfig_mixer: ignore "Console" devices for amixer
Michael Prokop [Tue, 4 Feb 2014 11:15:55 +0000 (12:15 +0100)]
config_mixer: ignore "Console" devices for amixer

Strings like 'Console,0' indicate a device where "amixer ... unmute"
results in:

| amixer: Invalid command!

So ignore such devices.

5 years agoRelease new version 0.11.2 v0.11.2
Michael Prokop [Mon, 3 Feb 2014 15:20:14 +0000 (16:20 +0100)]
Release new version 0.11.2

5 years agoReport result of scripts execution
Michael Prokop [Mon, 6 Jan 2014 14:55:26 +0000 (15:55 +0100)]
Report result of scripts execution

6 years agoRelease new version 0.11.1 v0.11.1
Michael Prokop [Thu, 26 Sep 2013 19:56:44 +0000 (21:56 +0200)]
Release new version 0.11.1