debootstrap
is a tool which will install a Debian/Ubuntu base system into a subdirectory of another, already installed system.
The installation log ends like this:
. . .
I: Validating xxd 2:8.1.0320-1ubuntu3
I: Validating xz-utils 5.2.4-1
I: Validating zlib1g 1:1.2.11.dfsg-1ubuntu2
I: Chosen extractor for .deb packages: dpkg-deb
I: Extracting base-files...
So it seems to me that the only package debootstrap
extracts is base-files
, right?
Is there any way for debootstrap
to extract/install more packages?
Especially, I found that debootstrap
doesn't even install linux kernel at all. Can I somehow let debootstrap
to install linux kernel as well?
I haven't install kernel but have found this
In the link The code bit
--include=iputils-ping
is an example of how to add package but you after install the machine in a folder you like, you canchroot
in that folder add all apt repo you like and giveapt update && apt upgrade
orapt install packXXX
To my study I have do this:
$ mkdir -p sviluppo/studio/progetti/docker/immagini/ubuntu19.10
$ cd sviluppo/studio/progetti/docker/immagini/ubuntu19.10
Importan do not forget to do a
cd
on the future chroot folder like mine above$ sudo apt policy debootstrap
Then I have installed ubuntu 19.10 on my folder:
$ sudo debootstrap --verbose eoan ./
$ sudo vim ./etc/apt/sources.list
and change it to:Then
Regards,
Leonardo