Live manual Debian Live

# Debian Live Manual

# Installation

111

# 3. Installation

112

3.1 Requirements

113

Building live system images has very few system requirements for the host system:

114

- Superuser (root) access

115

- An up-to-date version of live-build

116

- A POSIX-compliant shell, such as bash or dash

117

- debootstrap

118

- Linux 2.6 or newer

119

- A mount point with dev and exec rights.

120

# mount <your_mount_point> -odev,exec,remount

121

Note that using Debian or a Debian-derived distribution is not required - live-build will run on almost any distribution with the above requirements.

122

3.2 Installing live-build

123

You can install live-build in a number of different ways:

124

- From the Debian repository

125

- From source

126

- From snapshots

127

If you are using Debian, the recommended way is to install live-build via the Debian repository.

128

3.2.1 From the Debian repository

129

Simply install live-build like any other package:

130

# apt-get install live-build

131

3.2.2 From source

132

live-build is developed using the Git version control system. On Debian based systems, this is provided by the git package. To check out the latest code, execute:

133

$ git clone https://salsa.debian.org/live-team/live-build.git

134

You can build and install your own Debian package by executing:

135

$ cd live-build
$ dpkg-buildpackage -b -uc -us
$ cd ..

136

Now install whichever of the freshly built `.deb` files you were interested in, e.g.

137

# dpkg -i live-build_4.0-1_all.deb

138

You can also install live-build directly to your system by executing:

139

# make install

140

and uninstall it with:

141

# make uninstall

142

3.3 Installing live-boot and live-config

143

Note: You do not need to install live-boot or live-config on your system to create customized live systems. However, doing so will do no harm and is useful for reference purposes. If you only want the documentation, you may now install the live-boot-doc and live-config-doc packages separately.

144

3.3.1 From the Debian repository

145

Both live-boot and live-config are available from the Debian repository as per Installing live-build.

146

3.3.2 From source

147

To use the latest source from git, you can follow the process below. Please ensure you are familiar with the terms mentioned in Terms.

148

- Checkout the live-boot and live-config sources

149

$ git clone https://salsa.debian.org/live-team/live-boot.git
$ git clone https://salsa.debian.org/live-team/live-config.git

150

Consult the live-boot and live-config man pages for details on customizing if that is your reason for building these packages from source.

151

- Build live-boot and live-config .deb files

152

You must build either on your target distribution or in a chroot containing your target platform: this means if your target is trixie then you should build against trixie.

153

Use a personal builder such as pbuilder or sbuild if you need to build live-boot for a target distribution that differs from your build system. For example, for trixie live images, build live-boot in a trixie chroot. If your target distribution happens to match your build system distribution, you may build directly on the build system using `dpkg-buildpackage` (provided by the dpkg-dev package):

154

$ cd live-boot
$ dpkg-buildpackage -b -uc -us
$ cd ../live-config
$ dpkg-buildpackage -b -uc -us

155

- Use applicable generated .deb files

156

As live-boot and live-config are installed by live-build system, installing the packages in the host system is not sufficient: you should treat the generated .deb files like any other custom packages. Since your purpose for building from source is likely to test new things over the short term before the official release, follow Installing modified or third-party packages to temporarily include the relevant files in your configuration. In particular, notice that both packages are divided into a generic part, a documentation part and one or more back-ends. Include the generic part, only one back-end matching your configuration, and optionally the documentation. Assuming you are building a live image in the current directory and have generated all .deb files for a single version of both packages in the directory above, these bash commands would copy all of the relevant packages including default back-ends:

157

$ cp ../live-boot{_,-initramfs-tools,-doc}*.deb config/packages.chroot/
$ cp ../live-config{_,-sysvinit,-doc}*.deb config/packages.chroot/