Comment 6 for bug 1768526

Revision history for this message
Jan Gutter (jangutter) wrote :

Thanks! I've created a custom cloud-image using the following method, and verified that the proposed package has indeed moved the module out of -extras into the main package.

curl 'http://cloud-images.ubuntu.com/daily/server/bionic/current/bionic-server-cloudimg-amd64.img' -O

cat >bionic-proposed <<EOF
Package: *
Pin: release a=bionic-proposed
Pin-Priority: 400
EOF

cat >bionic-proposed.list <<EOF
deb http://archive.ubuntu.com/ubuntu/ bionic-proposed restricted main multiverse universe
EOF

LIBGUESTFS_BACKEND=direct virt-copy-in \
  -a bionic-server-cloudimg-amd64.img \
  bionic-proposed.list /etc/apt/sources.list.d/
LIBGUESTFS_BACKEND=direct virt-copy-in \
  -a bionic-server-cloudimg-amd64.img \
  bionic-proposed /etc/apt/preferences.d/
LIBGUESTFS_BACKEND=direct virt-customize -m 2048\
  -a bionic-server-cloudimg-amd64.img \
  --run-command 'apt-get update' \
  --run-command 'DEBIAN_FRONTEND=noninteractive apt-get --assume-yes install linux-image-generic/bionic-proposed' \
  --run-command 'apt-get --assume-yes purge linux-modules-extra-*'