live-boot-grml.git
3 years agoRelease new version 1:20200527+grml.1 debian/1%20200527+grml.1
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

3 years agoFix duplicate Homepage header in debian/control
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

3 years agoMerge remote-tracking branch 'upstream/master'
Michael Prokop [Wed, 27 May 2020 11:59:06 +0000 (13:59 +0200)]
Merge remote-tracking branch 'upstream/master'

3 years ago9990-grml-networking.sh: support /etc/network/interfaces.d/* in /e/n/i
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

3 years agoMerge branch 'fix-var-tmp-perms' into 'master'
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

4 years agoSet sticky bit on /var/tmp as well (matching perms in base-files)
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)

4 years agoMerge branch 'debian' into 'master'
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

4 years ago"Live Systems" -> "Debian Live"
Lyndon Brown [Wed, 11 Mar 2020 15:09:47 +0000 (15:09 +0000)]
"Live Systems" -> "Debian Live"

4 years agoamend copyright
Lyndon Brown [Wed, 11 Mar 2020 13:14:02 +0000 (13:14 +0000)]
amend copyright

4 years agoMerge branch 'lintian-fixes' into 'master'
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

4 years agoMerge branch 'master' into 'master'
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

4 years agocomponents/9990-main.sh: Fix shellcheck issue SC2236
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>
4 years agoFix flipped logic for handling memdiskfind
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>
4 years agoSet debhelper-compat version in Build-Depends.
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.

4 years agoBump debhelper from old 10 to 12.
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.

4 years agoUpdate standards version to 4.4.1, no changes needed.
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.

4 years agoMerge branch 'doc-multiple-persistence-overlays' into 'master'
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

4 years agoDocument the fact that persistence-label now accepts a list
Marcel Partap [Thu, 12 Sep 2019 13:50:08 +0000 (15:50 +0200)]
Document the fact that persistence-label now accepts a list

4 years agoMerge branch 'feature-multiple-persistence-overlays' into 'master'
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

4 years agoMerge branch 'fix-silence-mount-failures' into 'master'
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

4 years agoFix spurious error msgs from live-boot about failed mounts…
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

4 years agoAccept multiple overlay names from persistence-label parameter
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

4 years agoMerge branch 'master' into 'master'
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

4 years agoUse ntfs-3g instead of kernel module ntfs.ko.
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)"

4 years agoMerge branch 'master' into 'master'
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

4 years agoCopy /etc/hostname and /etc/hosts into target
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>
4 years agoCreate /etc/hostname in initramfs
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>
4 years agoSimplify empty check for /etc/resolv.conf
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>
4 years agoFix shellcheck in components/9990-main.sh
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>
4 years agoFix DNS search entry in /etc/resolv.conf
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>
4 years agocomponents/9990-networking.sh: Add shellcheck override
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>
4 years agoRelease new version 1:20180603+grml.3 debian/1%20180603+grml.3
Michael Prokop [Thu, 11 Jul 2019 09:51:50 +0000 (11:51 +0200)]
Release new version 1:20180603+grml.3

4 years agoEnsure locating libnss* files doesn't fail on merged-usr systems
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.

4 years agoA workaround to make sure /dev/mtd0 can be created
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

4 years agoUpdate changelog for 1:20190614 release debian/1%20190614
Luca Boccassi [Fri, 14 Jun 2019 09:55:47 +0000 (10:55 +0100)]
Update changelog for 1:20190614 release

4 years agoSet Standards-Version to 4.3.0
Luca Boccassi [Fri, 14 Jun 2019 09:46:10 +0000 (10:46 +0100)]
Set Standards-Version to 4.3.0

4 years agoSet Rules-Requires-Root: no
Luca Boccassi [Fri, 14 Jun 2019 09:44:56 +0000 (10:44 +0100)]
Set Rules-Requires-Root: no

4 years agoAlso search for libnss_*.so files in /usr/lib
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>
4 years agoUpdated the translation files.
Roland Clobus [Thu, 9 May 2019 13:12:46 +0000 (13:12 +0000)]
Updated the translation files.
The translators can now update their translations.

4 years agoUse 'true' when referring to boolean environment variables
Roland Clobus [Thu, 9 May 2019 08:37:21 +0000 (08:37 +0000)]
Use 'true' when referring to boolean environment variables

4 years agoNew Build-Depends: po4a for the translation files
Roland Clobus [Wed, 8 May 2019 16:48:41 +0000 (18:48 +0200)]
New Build-Depends: po4a for the translation files

4 years agoRebuild the translations
Roland Clobus [Wed, 8 May 2019 15:17:41 +0000 (17:17 +0200)]
Rebuild the translations

4 years agoDelete all generated files. They are generated from the po files.
Roland Clobus [Wed, 8 May 2019 15:10:44 +0000 (17:10 +0200)]
Delete all generated files. They are generated from the po files.

4 years agoAlways rebuild po4a.cfg
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

4 years agoAutomatically create a snapshot of the latest package
Roland Clobus [Wed, 8 May 2019 15:42:12 +0000 (15:42 +0000)]
Automatically create a snapshot of the latest package

4 years agoFixed Lintian warning: manpage-section-mismatch
Roland Clobus [Wed, 1 May 2019 15:50:04 +0000 (17:50 +0200)]
Fixed Lintian warning: manpage-section-mismatch

4 years agoFixed a small typo.
Roland Clobus [Wed, 1 May 2019 15:42:09 +0000 (17:42 +0200)]
Fixed a small typo.

4 years agoUpdated URL to the homepage and manual.
Roland Clobus [Wed, 1 May 2019 15:30:56 +0000 (17:30 +0200)]
Updated URL to the homepage and manual.

4 years agoFixed fetching the version number.
Roland Clobus [Wed, 1 May 2019 15:24:05 +0000 (17:24 +0200)]
Fixed fetching the version number.

4 years agoUsed the same text for po4a as in live-manual.
Roland Clobus [Wed, 1 May 2019 15:01:57 +0000 (17:01 +0200)]
Used the same text for po4a as in live-manual.

4 years agoUpdated URL to the manual
Roland Clobus [Wed, 1 May 2019 14:56:47 +0000 (16:56 +0200)]
Updated URL to the manual

4 years agoThe homepage is https://wiki.debian.org/DebianLive
Roland Clobus [Wed, 1 May 2019 14:53:38 +0000 (16:53 +0200)]
The homepage is https://wiki.debian.org/DebianLive

4 years agocheckbashisms can be found on salsa.debian.org now.
Roland Clobus [Wed, 1 May 2019 14:47:33 +0000 (16:47 +0200)]
checkbashisms can be found on salsa.debian.org now.

5 years agoRelease new version 1:20180603+grml.2 debian/1%20180603+grml.2
Michael Prokop [Fri, 8 Feb 2019 16:26:15 +0000 (17:26 +0100)]
Release new version 1:20180603+grml.2

5 years agoDo not generate dhcp entry for loopback interface
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

5 years agoRelease new version 1:20180603+grml.1 debian/1%20180603+grml.1
Michael Prokop [Thu, 13 Dec 2018 16:29:26 +0000 (17:29 +0100)]
Release new version 1:20180603+grml.1

5 years ago9990-grml-networking.sh: display Grml info, update interfaces comment + operate on...
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

5 years agoSupport debian_networking boot option to use Debian's network behavior
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,...)

5 years agoMinimize delta to Debian's upstream/master
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

5 years agoMerge remote-tracking branch 'upstream/master'
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.

5 years agoPrepare new release to unstable debian/1%20180603
Raphaël Hertzog [Sun, 3 Jun 2018 21:00:48 +0000 (23:00 +0200)]
Prepare new release to unstable

5 years agoDouble quote to prevent globbing and word splitting
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`.

5 years agoFix resolving FQDN given by DHCP
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.

6 years agoRemove --paralle from dh to fix Lintian Warning.
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.

6 years agoMark live-boot-doc as Multi-Arch: foreign
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.

6 years agoUpdate changelog for 1:20180328 release, upload to unstable debian/1%20180328
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.

6 years agoAdd myself to Uploaders.
Luca Boccassi [Wed, 28 Mar 2018 19:06:48 +0000 (20:06 +0100)]
Add myself to Uploaders.

6 years agoBump Standards-Version to 4.1.3, no changes.
Luca Boccassi [Wed, 28 Mar 2018 17:54:16 +0000 (18:54 +0100)]
Bump Standards-Version to 4.1.3, no changes.

6 years agoRemove dead link to live-systems.org from debian/copyright.
Luca Boccassi [Wed, 28 Mar 2018 17:49:31 +0000 (18:49 +0100)]
Remove dead link to live-systems.org from debian/copyright.

6 years agoUse HTTPS in debian/copyright (policy 4.0.0).
Luca Boccassi [Wed, 28 Mar 2018 17:49:08 +0000 (18:49 +0100)]
Use HTTPS in debian/copyright (policy 4.0.0).

6 years agoFix typos in recently added changelog and manpage changes
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

6 years agoClarify FROMISO documentation in live-boot manpage
Luca Boccassi [Thu, 22 Mar 2018 21:50:42 +0000 (21:50 +0000)]
Clarify FROMISO documentation in live-boot manpage

6 years agofromiso: add support for local ISO (ONIE)
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.

6 years agoAdd backward compatibility rbind mount /lib/live/mount -> /run/live
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

6 years agoSupport live-{top,premount,bottom} hooks
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>
6 years agoRemove sourcing /scripts/functions in components
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>
6 years agoFix overlay mount after switch to /run/live
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>
6 years agoFix fromiso after switch to /run/live
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).

6 years agoFix custom mounts after switch to /run/live
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).

6 years agoRemove workaround for ipconfig issues
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.

6 years agoUpdate changelog
Raphaël Hertzog [Tue, 13 Mar 2018 09:53:09 +0000 (10:53 +0100)]
Update changelog

6 years agoUse true|false instead of y|n for environment variables
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.

6 years agoAdd back persistance fsck option
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

6 years agoFix ifconfig parsing
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

6 years agoUpdate DNSFILE even if DNSFILE contains only commented or empty lines
raizo62 [Tue, 6 Mar 2018 19:20:29 +0000 (20:20 +0100)]
Update DNSFILE even if DNSFILE contains only commented or empty lines

6 years agoUse low urgency as we really want a longer test period
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

6 years agoUpdate changelog
Raphaël Hertzog [Sat, 24 Feb 2018 16:59:55 +0000 (17:59 +0100)]
Update changelog

6 years agoStrip comments from checksums files passed to "shaXsum -c"
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

6 years agoUpdate changelog for 1:20171121 release
Raphaël Hertzog [Fri, 23 Feb 2018 18:21:00 +0000 (19:21 +0100)]
Update changelog for 1:20171121 release

6 years agoUse klibc's mount again for fuse mounts
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

6 years agoAdd configuration variables to build a stripped down initrd
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

6 years agoSimplify mount point handling by using /run/live instead of /lib/live/mount
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

6 years agoSupport setting upperdir tmpfs size with overlay-size boot parameter
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

6 years agoAvoid double slashes in some paths
Benjamin Drung [Fri, 22 Dec 2017 18:03:58 +0000 (19:03 +0100)]
Avoid double slashes in some paths

Closes: #885453

6 years agoDon't replace busybox's wget by the true wget
Benjamin Drung [Tue, 19 Dec 2017 15:06:58 +0000 (16:06 +0100)]
Don't replace busybox's wget by the true wget

It was likely done for https support but since buster the busybox
provided wget has https support too. We save a lot of space by
doing so (8 Mb).

Gbp-Dch: Full
Closes: #885455

6 years agoRepo moved to salsa
Steve McIntyre [Fri, 9 Feb 2018 23:19:47 +0000 (23:19 +0000)]
Repo moved to salsa

6 years agoAdd a small warning in the long description
Raphaël Hertzog [Thu, 21 Dec 2017 13:38:48 +0000 (14:38 +0100)]
Add a small warning in the long description

The package must not be installed on a regular system, but only in a
live image.

Closes: #884886

6 years agoFix read-only persistence mode with overlayfs
Ronny Standtke [Tue, 21 Nov 2017 14:27:09 +0000 (15:27 +0100)]
Fix read-only persistence mode with overlayfs

Thanks to Ronny Standtke <ronny.standtke@fhnw.ch> for the patch.

Closes: #877776

6 years agoFix spelling errors in live-boot(7). debian/1%20170623
Raphaël Hertzog [Fri, 23 Jun 2017 12:58:09 +0000 (14:58 +0200)]
Fix spelling errors in live-boot(7).

6 years agoBump Standards-Version to 4.0.0.
Raphaël Hertzog [Fri, 23 Jun 2017 12:53:06 +0000 (14:53 +0200)]
Bump Standards-Version to 4.0.0.