[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Documenting the generation of the live images in Debian



Hello Steve McIntyre, Eduard Bloch and lists,

On 11/07/2019 12:21, Steve McIntyre wrote on debian-live:
> On Thu, Jul 11, 2019 at 03:13:48PM +0700, Azure Zanculmarktum wrote:
>> Where can I find the source to build debian live? ... the live-build
config.
>
> The setup we use is in git:
>   https://salsa.debian.org/images-team/live-setup/
...
>
https://salsa.debian.org/images-team/live-setup/blob/master/available/run-30live-wrapper

As part of my documentation effort for live-manual, I would like to
include the procedure for the official Debian CD image generation (which
will effectively replace chapter 16) in
https://live-team.pages.debian.net/live-manual/html/live-manual/procedures.en.html

This mail is rather technical, but I want to document the steps that
I've taken.

From what I've seen in the live-setup repository [5], there are two
strategies for generating Debian CD images.

A) Use lb config (run-30live-build)
B) Use lwr (run-30live-wrapper)

I downloaded 'debian-live-10.3.0-amd64-standard.iso' from [1], which
contains the string 'Official Debian GNU/Linux Live 10.3.0 standard
2020-02-08T12:27'. This string is generated by the run-30live-wrapper
script, so I assume that the official images are generated by method B, lwr.

I've read through run-30live-wrapper, and I think by now I have
correctly extracted the commands for the generation of the Debian Stable
CDs, but I'm unsure how to proceed.

I have the following questions/requests:
* lwr depends on vmdebootstrap, which is currently only in Buster
(stable). According to its author vmdebootstrap is to be replaced by
vmdb2 or something else [2]. Is someone working on this?
* I've seen a huge speed-up when I'm using a ramdisk, but that needs a
merge request to be accepted [3].
  When invoking 'chroot' in live-setup/available/live-customise.sh the
variable TMPDIR must not be set, otherwise it is not possible to
generate temporary files within the chroot.
* To reduce the amount of downloads, I am using a slightly patched
version of apt-cacher-ng, in order to be able to use the installer. See
my bug report [4]
  The live-wrapper script downloads the installer, but apt-cacher-ng
rejects a path ending in a slash. The following command simulates this
download:
<pre>
  wget -S
"http://localhost:3142/deb.debian.org/debian/dists/buster/main/installer-amd64/current/images/cdrom/";
</pre>
* The run-30live-wrapper mentions wheezy and jessie, so it is rather old

I would like to add to the live-manual the steps to build an image from
the current stable and testing versions of Debian. Do you have
hints/ideas how I can proceed?

With kind regards,
Roland Clobus

--- Commands
This is the list of commands that I use (all as root):
mkdir -p /tmp/mytmp
mount -t tmpfs tmpfs /tmp/mytmp
export TMPDIR=/tmp/mytmp
lwr -m http://localhost:3142/deb.debian.org/debian \
    --apt-mirror http://deb.debian.org/debian \
    --customise /home/roland/git/live-setup/available/live-customise.sh \
    --architecture amd64 \
    -d buster \
    --isolinux \
    --grub \
    --log stderr \
    --installer \
    -t live-task-standard \
    -f "" \
    --base_debs "eject pciutils usbutils keyutils keyboard-configuration
console-setup lvm2 mdadm dmsetup cryptsetup dmraid e2fsprogs btrfs-progs
xfsprogs jfsutils grub-efi-amd64 grub-efi-amd64-bin grub-pc
grub-efi-amd64-signed shim-signed" \
    --description "Unofficial Debian GNU/Linux Live 10.3 standard" \
    --volume_id "d-live 10.3 st amd64" \
    --image_output debian-live-10.3.iso

--- Links
[1] https://www.debian.org/CD/live/
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=910201
[3] https://salsa.debian.org/images-team/live-setup/-/merge_requests/1
[4] https://bugs.debian.org/954437
[5] https://salsa.debian.org/images-team/live-setup

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: