Skip to content

Commit a9295b2

Browse files
committed
Add dummy cdrom.sources for Subiquity
1 parent 24ee574 commit a9295b2

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

patches/000_setup.bash

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
9292
EOF
9393
) | sudo tee /etc/apt/sources.list.d/ubuntu.sources
9494

95+
# Source: https://github.com/canonical/subiquity/blob/main/subiquity/server/apt.py#L277-L288
96+
(cat << 'EOF'
97+
## Utile OS does not ship with a portable Debian repository on its bootable images.
98+
##
99+
## This file is only here to prevent Subiquity from configuring 'file:///cdrom' as an APT source during installation.
100+
EOF
101+
) | sudo tee /etc/apt/sources.list.d/cdrom.sources
102+
95103
apt_get_update
96104

97105
# Package seeding happens here now instead of in the host (with debootstrap), since debootstrap doesn't install recommends of packages...

0 commit comments

Comments
 (0)