Ubuntu RootFS
How to install the rootfs?
1) Download the rootfs itself from Ubuntu
2) Extract it with tar on the future root disk
3) rootfs into it (see config/common/chroot.sh
+ bind /boot
)
4) disable "snap" with /etc/apt/preferences.d/nosnap.pref
(1)
5) install minimum bootable system(2)
6) set a password for root and create main user
7) think about _/install/ubuntu.sh
(docker system)
8) apt-get install -y net-tools isc-dhcp-client
9) on the guest: localectl set-keymap be
(1)
/etc/apt/preferences.d/nosnap.pref:
# Disable snapd installation via apt-get
Package: snapd
Pin: release a=*
Pin-Priority: -10
(2)
minimum bootable system installation:
apt-get install -y apt-utils dialog
LC_ALL=C apt-get install -y locales
echo "en_GB.UTF-8 UTF-8" > /etc/locale.gen && locale-gen
apt-get install -y linux-base linux-image-generic
# You need to select some options now:
apt-get install grub2
sed -i 's:^#GRUB_DISABLE_OS_PROBER=false:GRUB_DISABLE_OS_PROBER=false:' /etc/default/grub
update-grub # would be better done on the host, though
# Takes a bit of time (also, asks for confirmation)
apt-get install -y unminimize
unminimize