Raphaël Hertzog [Mon, 8 Feb 2021 11:21:40 +0000 (12:21 +0100)]
Update changelog for 1:
20210208 release
Luca Boccassi [Mon, 8 Feb 2021 10:17:48 +0000 (10:17 +0000)]
Merge branch 'revert-
ef866fdb' into 'master'
Revert
ef866fdb
See merge request live-team/live-boot!35
Raphaël Hertzog [Fri, 22 Jan 2021 14:19:07 +0000 (15:19 +0100)]
Update changelog for 1:
20210122 release
Raphaël Hertzog [Fri, 22 Jan 2021 14:16:20 +0000 (15:16 +0100)]
Update my maintainer email
The work I do in the live team is part of my Kali work.
Raphaël Hertzog [Fri, 22 Jan 2021 14:15:28 +0000 (15:15 +0100)]
Update standards version to 4.5.0, no changes needed.
Changes-By: lintian-brush
Fixes: lintian: out-of-date-standards-version
See-also: https://lintian.debian.org/tags/out-of-date-standards-version.html
Raphaël Hertzog [Sat, 12 Dec 2020 16:10:37 +0000 (16:10 +0000)]
Merge branch 'master' into 'master'
9990-select-eth-device.sh: check carrier, pick NIC
See merge request live-team/live-boot!33
Raphaël Hertzog [Fri, 23 Oct 2020 14:03:14 +0000 (16:03 +0200)]
Drop Iain R. Learmonth from Uploaders on his request
Closes: #970288
Steven Shiau [Thu, 22 Oct 2020 00:56:19 +0000 (00:56 +0000)]
Update 9990-select-eth-device.sh
Steven Shiau [Thu, 22 Oct 2020 00:49:11 +0000 (00:49 +0000)]
Revert "Merge branch 'master' into 'master'"
This reverts merge request !34
Luca Boccassi [Tue, 4 Aug 2020 10:01:53 +0000 (10:01 +0000)]
Merge branch 'master' into 'master'
Fix leading space in DEVICE setting
See merge request live-team/live-boot!34
Benjamin Drung [Tue, 4 Aug 2020 09:43:06 +0000 (11:43 +0200)]
Fix leading space in DEVICE setting
live-boot will set the `DEVICE` parameter in `/conf/param.conf`. This
parameter specifies the default network interface to use, like eth0. So
only one Ethernet device is allowed here, but live-boot generates a list
with a leading space. For example it will set `DEVICE=' eth0'`. This
causes initramfs script relying on `DEVICE` fail.
Therefore just set the `DEVICE` parameter to the last connected
interface found.
Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
Steven Shiau [Fri, 22 May 2020 12:00:43 +0000 (20:00 +0800)]
9990-select-eth-device.sh: check carrier, pick NIC
Improve the mechanism to check the carrier to pick from
multiple network interfaces. This is based on the patch from
Michal Zatloukal.
Ref: https://sourceforge.net/p/clonezilla/bugs/298/
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>
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.
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
Benjamin Drung [Fri, 22 Dec 2017 18:03:58 +0000 (19:03 +0100)]
Avoid double slashes in some paths
Closes: #885453
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
Steve McIntyre [Fri, 9 Feb 2018 23:19:47 +0000 (23:19 +0000)]
Repo moved to salsa
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
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
Raphaël Hertzog [Fri, 23 Jun 2017 12:58:09 +0000 (14:58 +0200)]
Fix spelling errors in live-boot(7).
Raphaël Hertzog [Fri, 23 Jun 2017 12:53:06 +0000 (14:53 +0200)]
Bump Standards-Version to 4.0.0.
Raphaël Hertzog [Fri, 23 Jun 2017 12:52:42 +0000 (14:52 +0200)]
Bump debhelper compat to 10.