Michael Prokop [Fri, 17 Jul 2020 21:23:22 +0000 (23:23 +0200)]
Release new version 1:
20200527+grml.4
Michael Prokop [Fri, 17 Jul 2020 21:19:06 +0000 (23:19 +0200)]
Include ethtool binary for debugging network configuration during network boot
This should make it possible to apply specific network speed
settings or disable auto-negotiation.
Related to https://github.com/grml/grml/issues/153
Michael Prokop [Fri, 10 Jul 2020 07:07:21 +0000 (09:07 +0200)]
Release new version 1:
20200527+grml.3
Michael Prokop [Fri, 10 Jul 2020 07:05:19 +0000 (09:05 +0200)]
9990-misc-helpers.sh: ensure to appened to boot.log file
boot.log might exist already, don't overwrite it but instead append output
Michael Prokop [Fri, 10 Jul 2020 06:57:19 +0000 (08:57 +0200)]
0020-read-only: iterate over all devices + improve console message layout
There might be block devices other than /dev/sd* + /dev/vd* (like
/dev/nvme0n*). Instead of hardcoding a static list, let's iterate over
all of them, and then ignore all symlinks (pointing to the actual
devices) and consider only actual block devices.
Also ensure that the device exists (checked via `blockdev --getsz ...`)
before executing `blockdev --setro ...` on it.
Reworked the according console message: using printf with field width
allows us to make this look a bit nicer and better integrate into the
boot sequence look-alike.
JFTR: it would be nice to send output also to `/boot.log` (which ends up
as `/var/log/live/boot.log` on the booted system), but if we do this
then the output is visible twice during startup, as `/boot.live` is sent
to console via `tail -f`. If changing this to only list it via
`/boot.live` it might not be always guaranteed to be visible on screen,
so we didn't change this yet.
This work was funded by Grml-Forensic.
Michael Prokop [Tue, 23 Jun 2020 10:22:29 +0000 (12:22 +0200)]
Release new version 1:
20200527+grml.2
Michael Prokop [Tue, 23 Jun 2020 09:58:20 +0000 (11:58 +0200)]
Add instance for sourcing /etc/network/interfaces.d/ only once
We don't want one instance of `source /etc/network/interfaces.d/*`
per interace, but instead once per file.
Closes: https://github.com/grml/live-boot-grml/issues/11
Michael Prokop [Wed, 27 May 2020 12:14:16 +0000 (14:14 +0200)]
Release new version 1:
20200527+grml.1
JFTR, changelog was generated via:
| % gbp dch --verbose --meta --multimaint-merge --id-length=7 --release --since=
d3f65848c3fd43a5bbb375b1783fa2b9fa6125a6 --debian-branch=master --upstream-branch=master
Michael Prokop [Wed, 27 May 2020 12:15:54 +0000 (14:15 +0200)]
Fix duplicate Homepage header in debian/control
Merge oversight in commit
51f4b9d56200b
Michael Prokop [Wed, 27 May 2020 11:59:06 +0000 (13:59 +0200)]
Merge remote-tracking branch 'upstream/master'
Michael Prokop [Wed, 27 May 2020 11:48:50 +0000 (13:48 +0200)]
9990-grml-networking.sh: support /etc/network/interfaces.d/* in /e/n/i
For example cloud-init writes its network configuration file to
/etc/network/interfaces.d/50-cloud-init, so the file needs
to be sourced.
Related to https://github.com/grml/grml/issues/124
Raphaël Hertzog [Tue, 21 Apr 2020 08:54:41 +0000 (08:54 +0000)]
Merge branch 'fix-var-tmp-perms' into 'master'
Set sticky bit on /var/tmp as well (matching perms in base-files)
See merge request live-team/live-boot!30
Marcel Partap [Sat, 18 Apr 2020 16:25:08 +0000 (18:25 +0200)]
Set sticky bit on /var/tmp as well (matching perms in base-files)
(Fixes f.e. CUPS PDF driver not producing output files)
Luca Boccassi [Wed, 11 Mar 2020 15:12:45 +0000 (15:12 +0000)]
Merge branch 'debian' into 'master'
amend copyright
See merge request live-team/live-boot!29
Lyndon Brown [Wed, 11 Mar 2020 15:09:47 +0000 (15:09 +0000)]
"Live Systems" -> "Debian Live"
Lyndon Brown [Wed, 11 Mar 2020 13:14:02 +0000 (13:14 +0000)]
amend copyright
Raphaël Hertzog [Mon, 17 Feb 2020 09:53:41 +0000 (09:53 +0000)]
Merge branch 'lintian-fixes' into 'master'
Fix some issues reported by lintian
See merge request live-team/live-boot!27
Raphaël Hertzog [Wed, 22 Jan 2020 14:25:29 +0000 (14:25 +0000)]
Merge branch 'master' into 'master'
Fix flipped logic for handling memdiskfind
See merge request live-team/live-boot!28
Benjamin Drung [Mon, 13 Jan 2020 09:59:40 +0000 (10:59 +0100)]
components/9990-main.sh: Fix shellcheck issue SC2236
shellcheck complains about SC2236: Use -n instead of ! -z.
Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
Benjamin Drung [Mon, 13 Jan 2020 09:53:19 +0000 (10:53 +0100)]
Fix flipped logic for handling memdiskfind
Commit
07d13d4a81e8e3ea3f7cff63a6528efd5a46b1e7 accidentally flipped
the logic for handling memdiskfind, causing erroneous messages and a
four second boot delay.
Flip the logic again to correct it.
Thanks to Marcel Partap for reporting it.
Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
Debian Janitor [Wed, 4 Dec 2019 04:46:54 +0000 (04:46 +0000)]
Set debhelper-compat version in Build-Depends.
Fixes lintian: uses-debhelper-compat-file
See https://lintian.debian.org/tags/uses-debhelper-compat-file.html for more details.
Debian Janitor [Wed, 4 Dec 2019 04:46:36 +0000 (04:46 +0000)]
Bump debhelper from old 10 to 12.
+ debian/rules: Move --fail-missing argument to dh_missing.
Fixes lintian: package-uses-old-debhelper-compat-version
See https://lintian.debian.org/tags/package-uses-old-debhelper-compat-version.html for more details.
Debian Janitor [Wed, 4 Dec 2019 04:46:16 +0000 (04:46 +0000)]
Update standards version to 4.4.1, no changes needed.
Fixes lintian: out-of-date-standards-version
See https://lintian.debian.org/tags/out-of-date-standards-version.html for more details.
Raphaël Hertzog [Thu, 17 Oct 2019 09:43:29 +0000 (09:43 +0000)]
Merge branch 'doc-multiple-persistence-overlays' into 'master'
Document the fact that persistence-label now accepts a list
See merge request live-team/live-boot!24
Marcel Partap [Thu, 12 Sep 2019 13:50:08 +0000 (15:50 +0200)]
Document the fact that persistence-label now accepts a list
Raphaël Hertzog [Thu, 12 Sep 2019 13:25:54 +0000 (13:25 +0000)]
Merge branch 'feature-multiple-persistence-overlays' into 'master'
Accept multiple overlay names from persistence-label parameter
See merge request live-team/live-boot!23
Raphaël Hertzog [Thu, 12 Sep 2019 13:25:21 +0000 (13:25 +0000)]
Merge branch 'fix-silence-mount-failures' into 'master'
Fix spurious error msgs from live-boot about failed mounts…
See merge request live-team/live-boot!22
Marcel Partap [Mon, 9 Sep 2019 14:08:40 +0000 (16:08 +0200)]
Fix spurious error msgs from live-boot about failed mounts…
.. and directories already existing
> mount: mounting /dev/sr0 on /run/live/persistence/sr0 failed: No such device
> mount: mounting /dev/vda on /run/live/persistence/vda failed: No such device
> mkdir: can't create directory '/run/live/persistence/vda3/rw': File exists
> mkdir: can't create directory '/run/live/persistence/vda3/work': File exists
Marcel Partap [Mon, 9 Sep 2019 14:10:42 +0000 (16:10 +0200)]
Accept multiple overlay names from persistence-label parameter
.. separated by ',' as in persistence-label=linux-userdata,linux-systemconfig.img
Raphaël Hertzog [Fri, 6 Sep 2019 14:27:19 +0000 (14:27 +0000)]
Merge branch 'master' into 'master'
Fix the issue that fails to boot from removable NTFS device
See merge request live-team/live-boot!20
Closes: #939034
Steven Shiau [Fri, 6 Sep 2019 07:55:36 +0000 (15:55 +0800)]
Use ntfs-3g instead of kernel module ntfs.ko.
Use ntfs-3g instead of kernel module ntfs.ko to mount the file system.
Since Linux kernel 4.19.37-1 from Debian has dropped the support of
ntfs.ko:
https://metadata.ftp-master.debian.org/changelogs//main/l/linux-signed-amd64/linux-signed-amd64_4.19.37+5_changelog
<snipped>
"* ntfs: Disable NTFS_FS due to lack of upstream security support
(CVE-2018-12929, CVE-2018-12930, CVE-2018-12931)"
Raphaël Hertzog [Fri, 6 Sep 2019 06:41:36 +0000 (06:41 +0000)]
Merge branch 'master' into 'master'
Fix DNS search entry in /etc/resolv.conf and copy /etc/hostname and /etc/hosts into target
See merge request live-team/live-boot!19
Benjamin Drung [Wed, 21 Aug 2019 14:55:13 +0000 (16:55 +0200)]
Copy /etc/hostname and /etc/hosts into target
If the target system has an empty /etc/hostname file, copy /etc/hostname
from the initramfs into the target system. If the target system has an
empty or default /etc/hosts file, copy /etc/hosts from the initramfs
into the target system.
Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
Benjamin Drung [Wed, 21 Aug 2019 14:52:54 +0000 (16:52 +0200)]
Create /etc/hostname in initramfs
Persist hostname in /etc/hostname in the initramfs if the hostname is
known.
Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
Benjamin Drung [Wed, 21 Aug 2019 14:48:29 +0000 (16:48 +0200)]
Simplify empty check for /etc/resolv.conf
Shorten regular expression for grep command which matches empty lines
and lines with comments.
Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
Benjamin Drung [Wed, 21 Aug 2019 14:37:46 +0000 (16:37 +0200)]
Fix shellcheck in components/9990-main.sh
Address all issues reported by shellcheck:
```
shellcheck -e SC1091 components/9990-main.sh
```
Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
Benjamin Drung [Wed, 21 Aug 2019 14:15:48 +0000 (16:15 +0200)]
Fix DNS search entry in /etc/resolv.conf
Commit
66d1235abf2dbc4062ed5bb7aef28d99a5a38eb2 added support for
resolving DNS names from initramfs, but only the DNS domain was
configured for the DNS search. The DHCP client also provides the
`DOMAINSEARCH` variable that should be used for searching if available,
because it can contain more than one domain.
Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
Benjamin Drung [Wed, 21 Aug 2019 14:11:13 +0000 (16:11 +0200)]
components/9990-networking.sh: Add shellcheck override
To make `components/9990-networking.sh` shellcheck clean, add an
override for specifying `HWADDR`, which is used by `do_iscsi` from
`9990-mount-iscsi.sh`. Run shellcheck:
```
shellcheck -e SC1090 components/9990-networking.sh
```
Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
Michael Prokop [Thu, 11 Jul 2019 09:51:50 +0000 (11:51 +0200)]
Release new version 1:
20180603+grml.3
Michael Prokop [Thu, 11 Jul 2019 09:47:20 +0000 (11:47 +0200)]
Ensure locating libnss* files doesn't fail on merged-usr systems
Since debootstap v1.0.102 it defaults to --merged-usr, creating
/{bin,sbin,lib}/ symlinks pointing to their counterparts in /usr/
Debian/buster provides debootstrap 1.0.114 and therefore defaults to
--merged-usr as well. If the grml-live build environment
is based on Debian/buster we get this as default.
Inside backend/initramfs-tools/live.hook we have:
| for _SHLIB in $(find /lib -name 'libnss_dns.so.*' -o -name 'libnss_files.so.*')
| do
| copy_exec "${_SHLIB}"
| done
So if /lib is a symlink to /usr/lib (with merged-usr), then the `find
/lib ...` won't find any files (since it doesn't follow the symlink).
This change fixes this behavior.
Development sponsored by Sipwise GmbH.
This is reported as TT#62500 in customer's ticket system.
Steven Shiau [Mon, 17 Jun 2019 15:09:21 +0000 (15:09 +0000)]
A workaround to make sure /dev/mtd0 can be created
A workaround to make sure /dev/mtd0 can be created when memdisk is used.
This is due to sometimes "modprobe phram" can not successfully create /dev/mtd0.
Have to try several times.
Ref: https://gitlab.gnome.org/GNOME/gparted/issues/50#note_523831
http://gparted-forum.surf4.info/viewtopic.php?pid=32784#p32784
Luca Boccassi [Fri, 14 Jun 2019 09:55:47 +0000 (10:55 +0100)]
Update changelog for 1:
20190614 release
Luca Boccassi [Fri, 14 Jun 2019 09:46:10 +0000 (10:46 +0100)]
Set Standards-Version to 4.3.0
Luca Boccassi [Fri, 14 Jun 2019 09:44:56 +0000 (10:44 +0100)]
Set Rules-Requires-Root: no
Benjamin Drung [Wed, 12 Jun 2019 11:03:09 +0000 (13:03 +0200)]
Also search for libnss_*.so files in /usr/lib
The libnss_*.so were moved from /lib to /usr/lib and were not found any
more (breaking resolving the FQDN with "hostname -f").
Therefore also search for libnss_*.so files in /usr/lib.
Closes: #930419
Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
Roland Clobus [Thu, 9 May 2019 13:12:46 +0000 (13:12 +0000)]
Updated the translation files.
The translators can now update their translations.
Roland Clobus [Thu, 9 May 2019 08:37:21 +0000 (08:37 +0000)]
Use 'true' when referring to boolean environment variables
Roland Clobus [Wed, 8 May 2019 16:48:41 +0000 (18:48 +0200)]
New Build-Depends: po4a for the translation files
Roland Clobus [Wed, 8 May 2019 15:17:41 +0000 (17:17 +0200)]
Rebuild the translations
Roland Clobus [Wed, 8 May 2019 15:10:44 +0000 (17:10 +0200)]
Delete all generated files. They are generated from the po files.
Roland Clobus [Wed, 8 May 2019 15:06:52 +0000 (17:06 +0200)]
Always rebuild po4a.cfg
This is needed to ensure that new languages will automatically be found
Roland Clobus [Wed, 8 May 2019 15:42:12 +0000 (15:42 +0000)]
Automatically create a snapshot of the latest package
Roland Clobus [Wed, 1 May 2019 15:50:04 +0000 (17:50 +0200)]
Fixed Lintian warning: manpage-section-mismatch
Roland Clobus [Wed, 1 May 2019 15:42:09 +0000 (17:42 +0200)]
Fixed a small typo.
Roland Clobus [Wed, 1 May 2019 15:30:56 +0000 (17:30 +0200)]
Updated URL to the homepage and manual.
Roland Clobus [Wed, 1 May 2019 15:24:05 +0000 (17:24 +0200)]
Fixed fetching the version number.
Roland Clobus [Wed, 1 May 2019 15:01:57 +0000 (17:01 +0200)]
Used the same text for po4a as in live-manual.
Roland Clobus [Wed, 1 May 2019 14:56:47 +0000 (16:56 +0200)]
Updated URL to the manual
Roland Clobus [Wed, 1 May 2019 14:53:38 +0000 (16:53 +0200)]
The homepage is https://wiki.debian.org/DebianLive
Roland Clobus [Wed, 1 May 2019 14:47:33 +0000 (16:47 +0200)]
checkbashisms can be found on salsa.debian.org now.
Michael Prokop [Fri, 8 Feb 2019 16:26:15 +0000 (17:26 +0100)]
Release new version 1:
20180603+grml.2
Michael Prokop [Fri, 8 Feb 2019 15:26:21 +0000 (16:26 +0100)]
Do not generate dhcp entry for loopback interface
This fixes a regression that was introduced in commit
52474b4c28303324.
The variable $interface is pointing towards /sys/class/net/lo,
at least until we overwrite the variable by the basename of
its network interface name path. Accordingly fix order for comparison.
Closes: https://github.com/grml/live-boot-grml/issues/9
Thanks: Mykola Malkov for the bug report
Michael Prokop [Thu, 13 Dec 2018 16:29:26 +0000 (17:29 +0100)]
Release new version 1:
20180603+grml.1
Michael Prokop [Fri, 14 Dec 2018 14:27:11 +0000 (15:27 +0100)]
9990-grml-networking.sh: display Grml info, update interfaces comment + operate on all net devices
* By displaying "Preconfiguring Grml networking" it's more
explicit that we're running the 9990-grml-networking.sh code
* It's not the 23networking live-initramfs hook since quite some time,
update the comment for generation of /etc/network/interfaces
* Support also new style network device names by iterating over
/sys/class/net/* and skipping only the loopback interface
Michael Prokop [Thu, 13 Dec 2018 16:26:36 +0000 (17:26 +0100)]
Support debian_networking boot option to use Debian's network behavior
Debian's ip=... support diverges from kernel one and we (Grml) prefer
to use the behavior that's used by the kernel. By default we use our
Grml_Networking implementation from components/9990-grml-networking.sh,
but if the debian_networking boot option is used then we use Debian's
live-boot behavior with Netbase from components/9990-netbase.sh.
(Some minor details also diverge in the network handling, with
vlan support present in Grml, different nameserver handling,...)
Michael Prokop [Thu, 13 Dec 2018 15:14:39 +0000 (16:14 +0100)]
Minimize delta to Debian's upstream/master
Sync as much as possible with what Debian uses, to
make merging against upstream easy and be as close
to Debian's behavior as possible.
Changes synced from Debian upstream:
* xz compression is the default nowadays with gbp
* the FIXME file (debian/lib/live/boot/FIXME) no longer exists
* Recommends for eject + file aren't relevant within live-boot
* Don't re-implement initramfs-tools' log_failure_msg + log_warning_msg,
use their common behavior instead
* Debian's ip=... handling supports setting nameserver via its 5th field
* Drop our ip=... handling with copying complete ip=args into STATICIP
variable, this doesn't work as expected with the current code
Remaining changes where we diverge from Debian:
* custom bootid=... + ignore_bootid handling
* support nodhcphostname boot option
* support vlan=... boot option
* display Grml specific information on boot failures
* support /etc/grml_version
* custom network handling via Grml_Networking
* we don't support images directly on block devices
in find_livefs(), since this might raise unexpected
behavior in data rescue/forensic use cases
Michael Prokop [Thu, 13 Dec 2018 14:58:31 +0000 (15:58 +0100)]
Merge remote-tracking branch 'upstream/master'
Sync with upstream (https://salsa.debian.org/live-team/live-boot/),
git commit
7130a2c0b.
Raphaël Hertzog [Sun, 3 Jun 2018 21:00:48 +0000 (23:00 +0200)]
Prepare new release to unstable
Benjamin Drung [Wed, 25 Apr 2018 14:10:31 +0000 (16:10 +0200)]
Double quote to prevent globbing and word splitting
shellcheck complained about missing double quotes in
`components/9990-networking.sh`.
Benjamin Drung [Tue, 24 Apr 2018 15:54:10 +0000 (17:54 +0200)]
Fix resolving FQDN given by DHCP
The DHCP can specify a host and domain name for the system. live-boot
fills `/etc/hostname` and `/etc/resolv.conf` with the data from the DHCP
server, but resolving the fully qualified domain name (FQDN) fails, when
the host is not specified in DNS:
```
(initramfs) hostname -f
hostname: example-host: Host name lookup failure
```
To make the FQDN resolvable without DNS, `libnss_files.so` needs to be
included in the initramfs, `/etc/nsswitch.conf` need to prefer `files`
over `dns`, and `/etc/hosts` needs to be filled with the data from the
DHCP server.
Luca Boccassi [Thu, 29 Mar 2018 14:20:24 +0000 (15:20 +0100)]
Remove --paralle from dh to fix Lintian Warning.
debian-rules-uses-unnecessary-dh-argument - it's already the default.
Luca Boccassi [Thu, 29 Mar 2018 14:19:22 +0000 (15:19 +0100)]
Mark live-boot-doc as Multi-Arch: foreign
It's arch: all, it does not depend on anything and it has only text
files.
Luca Boccassi [Wed, 28 Mar 2018 19:07:45 +0000 (20:07 +0100)]
Update changelog for 1:
20180328 release, upload to unstable
Remove some entries from the changelog that mention fix to
regressions introduced in the same version, as they are not useful
for end users.
Luca Boccassi [Wed, 28 Mar 2018 19:06:48 +0000 (20:06 +0100)]
Add myself to Uploaders.
Luca Boccassi [Wed, 28 Mar 2018 17:54:16 +0000 (18:54 +0100)]
Bump Standards-Version to 4.1.3, no changes.
Luca Boccassi [Wed, 28 Mar 2018 17:49:31 +0000 (18:49 +0100)]
Remove dead link to live-systems.org from debian/copyright.
Luca Boccassi [Wed, 28 Mar 2018 17:49:08 +0000 (18:49 +0100)]
Use HTTPS in debian/copyright (policy 4.0.0).
Luca Boccassi [Fri, 23 Mar 2018 17:39:15 +0000 (17:39 +0000)]
Fix typos in recently added changelog and manpage changes
Reported by Lintian.
Gbp-Dch: Ignore
Luca Boccassi [Thu, 22 Mar 2018 21:50:42 +0000 (21:50 +0000)]
Clarify FROMISO documentation in live-boot manpage
Erik Ziegenbalg [Fri, 16 Mar 2018 19:48:18 +0000 (19:48 +0000)]
fromiso: add support for local ISO (ONIE)
An ONIE system on boot will uncompress a local ISO image. Handle that
case in live-boot to support it.
Luca Boccassi [Fri, 16 Mar 2018 12:08:16 +0000 (12:08 +0000)]
Add backward compatibility rbind mount /lib/live/mount -> /run/live
The paths used in the current released versions of live-boot are a
form of public API, and existing applications and scripts might rely
on them. Do a recursive bind mount of the new path on the previous one
so that they do not break on upgrade (see #886328).
This backward-compatible mount point will be deprecated and removed
before the Bullseye (Debian 11) release. Users are recommended to start
migrating to the new /run/live path as soon as possible.
Gbp-Dch: Full
Benjamin Drung [Wed, 13 Dec 2017 17:40:37 +0000 (18:40 +0100)]
Support live-{top,premount,bottom} hooks
initramfs-tools support hooks for top, premount, bottom when booting
with boot=local or boot=nfs. Add similar support to live-boot when
booting with boot=live.
Closes: #884355
Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
Benjamin Drung [Thu, 15 Mar 2018 18:23:18 +0000 (19:23 +0100)]
Remove sourcing /scripts/functions in components
The components 9990-fstab.sh and 9990-netbase.sh source
/scripts/functions. This overrides the mount_* functions (to no-ops)
which will break supporting live-{top,premount,bottom} hooks. Therefore
remove those problematic includes which do not seem to be necessary
nowadays. See Debian bug #884355 for the discussion.
Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
Benjamin Drung [Mon, 26 Feb 2018 14:14:26 +0000 (15:14 +0100)]
Fix overlay mount after switch to /run/live
The commit
0d878d3a679820d570a20c0fa1c1a2c5b92ad037 applied the patch
from Debian bug #886328 incompletely and misses one instance for
mounting the overlay directory.
Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
Luca Boccassi [Tue, 13 Mar 2018 21:37:55 +0000 (21:37 +0000)]
Fix fromiso after switch to /run/live
/live/fromiso was still used, switch to /run/live/fromiso to follow
changes from
0d878d3a6798 (see #886328).
Luca Boccassi [Tue, 13 Mar 2018 18:09:31 +0000 (18:09 +0000)]
Fix custom mounts after switch to /run/live
9990-misc-helpers.sh was still looping over /live/rootfs/* rather
than /run/live/rootfs/*, breaking custom mount points.
Also /live/persistence was used to store debug file instead of
/run/live/persistence in the same function.
Update them to follow changes from
0d878d3a6798 (see #886328).
Charles (Chas) Williams [Mon, 12 Mar 2018 22:44:01 +0000 (18:44 -0400)]
Remove workaround for ipconfig issues
If a system has more than a few interfaces, the enforced delay for
each interface can lead to excruciatingly long boot times. Even with
one interface, there is always a 15s penalty. The appropriate fix for
issues with ipconfig (and/or klibc) isn't here.
Raphaël Hertzog [Tue, 13 Mar 2018 09:53:09 +0000 (10:53 +0100)]
Update changelog
Luca Boccassi [Mon, 12 Mar 2018 22:10:40 +0000 (22:10 +0000)]
Use true|false instead of y|n for environment variables
Commit
97c0e08bd0f00264eb3c2c5896a28e25a89d9f6f changed from yes|no to
true|false. Maintain this consistency and change newly added
environment variables.
Chas Williams [Mon, 12 Mar 2018 15:51:22 +0000 (15:51 +0000)]
Add back persistance fsck option
Commit
bc79205b554396acd1a20538df2e189eb304ec9e removed the fsck
option due to lack of usage. But it can be useful and we have had
customer escalations due to corrupted persistent filesystem, which
are solved by being able to configure this option.
Mailing list thread:
https://lists.debian.org/debian-live/2015/08/msg00107.html
Sameer Agrawal [Mon, 12 Mar 2018 18:57:12 +0000 (18:57 +0000)]
Fix ifconfig parsing
ifconfig from net-tools does not output "inet.*addr:" pattern anymore.
Match IP addresses instead. But ifconfig from busybox does, so try
and match either patterns.
$ /sbin/ifconfig wlp2s0 | grep 'inet.*addr:'
$ /sbin/ifconfig eth0 | grep -E 'inet.*addr:|inet [0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*'
inet 192.168.1.91 netmask 255.255.255.0 broadcast 192.168.1.255
$ busybox ifconfig eth0 | grep -E 'inet.*addr:|inet [0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*'
inet addr:192.168.1.91 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fd00::1:60ad:2691:4cc6:f32/64 Scope:Global
inet6 addr: fe80::96de:80ff:feae:b976/64 Scope:Link
inet6 addr: fd00::1:96de:80ff:feae:b976/64 Scope:Global
inet6 addr: 2a00:23c5:be85:1400:96de:80ff:feae:b976/64 Scope:Global
inet6 addr: 2a00:23c5:be85:1400:60ad:2691:4cc6:f32/64 Scope:Global
Closes: #892772
raizo62 [Tue, 6 Mar 2018 19:20:29 +0000 (20:20 +0100)]
Update DNSFILE even if DNSFILE contains only commented or empty lines
Raphaël Hertzog [Sat, 24 Feb 2018 17:02:38 +0000 (18:02 +0100)]
Use low urgency as we really want a longer test period
Gbp-Dch: Ignore
Raphaël Hertzog [Sat, 24 Feb 2018 16:59:55 +0000 (17:59 +0100)]
Update changelog
Raphaël Hertzog [Sat, 24 Feb 2018 16:19:37 +0000 (17:19 +0100)]
Strip comments from checksums files passed to "shaXsum -c"
As reported in #796474, the busybox implementation of the various
shaXsum command fails when it encounters comment lines that it
can't parse. This fixes the 'verify-checksums' boot parameter.
Thanks: Andreas Heinlein for the report
Closes: #856482
Raphaël Hertzog [Fri, 23 Feb 2018 18:21:00 +0000 (19:21 +0100)]
Update changelog for 1:
20171121 release
Daniel Reichelt [Sun, 16 Jul 2017 15:15:46 +0000 (17:15 +0200)]
Use klibc's mount again for fuse mounts
When building a stretch live image which includes httpfs/buster for the
created live-image's initramfs to support live-boot's httpfs switch, the
boot process fails in a way similar to what has been reported in #823856.
Special handling for ${FUSE_MOUNT}s (httpfs, curlftps) was added to use
util-linux's mount instead of the klibc's in such cases. I tested the
use of a FUSE-based rootfs in conjunction with klibc's mount, and it
seems, nowadays the both of them work together.
So, the conditional incorporation and replacement of the mount command
is both no longer necessary, and has become harmful.
Closes: #868559
Benjamin Drung [Thu, 4 Jan 2018 14:05:37 +0000 (15:05 +0100)]
Add configuration variables to build a stripped down initrd
Add several environment variables to strip down the initrd size (for
minimal systems that do not need all features). This allows me to reduce
the initrd size from 8.5 MiB to 8.0 MiB when also using busybox's
mount (see Debian bug #868559) and wget (see Debian bug #885455).
Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
Closes: #886337
Benjamin Drung [Thu, 4 Jan 2018 10:02:32 +0000 (11:02 +0100)]
Simplify mount point handling by using /run/live instead of /lib/live/mount
Currently live-boot mounts following things:
/lib/live/mount/medium: the live media mounted read-only
/lib/live/mount/rootfs/filesystem.{squashfs,ext*,...}: the root fs image
/lib/live/mount/overlay: the copy-on-write content from aufs
/lib/live/mount/findiso: the loop-mounted iso image when using findiso
/lib/live/mount/persistence/*: persistent devices with copy-on-write overlay
Some of these mounts are mounted in /live before they are moved to their
correct place. Since the final root filesystem is mounted in /root and
run-init switches to it, special care needs to be taken when moving the
mount points around.
/lib/live/mount/overlay is not accessible any more in the live system:
$ df -h
/dev/loop0 169M 169M 0 100% /lib/live/mount/rootfs/root.squashfs
tmpfs 744M 0 744M 0% /lib/live/mount/overlay
overlay 1,5G 1001M 536M 66% /
The early initramfs stage mounts tmpfs on /run which doesn't need to be
moved once the final root filesystem is in place. The mount points do
not need much space and can live on /run/live without problems. Since
these mount points are run-time variable data, they fit perfectly for
/run and comply with FHS 3.0.
Therefore move /lib/live/mount to /run/live and skip the intermedia
/live mount points. This reduces code and complexity.
See also for the previous larger layout change:
https://lists.debian.org/debian-live/2012/10/msg00021.html
Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
Closes: #886328
Benjamin Drung [Fri, 22 Dec 2017 11:34:20 +0000 (12:34 +0100)]
Support setting upperdir tmpfs size with overlay-size boot parameter
Resizing the upperdir tmpfs mount will not affect mounted overlays.
The tmpfs size must be configured when mounting it. Therefore add an
overlay-size configuration option.
Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
Closes: #885466