mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-08-21 05:34:08 +00:00
Compare commits
29 Commits
ubuntu/mas
...
2.664.7
Author | SHA1 | Date | |
---|---|---|---|
|
bac2570518 | ||
|
3241df930b | ||
|
05bba4cbbd | ||
|
f400d7f718 | ||
|
a58b91da5f | ||
|
750d52b504 | ||
|
3b0439208e | ||
|
ab20f18c2e | ||
|
9b804b02e9 | ||
|
419a21205c | ||
|
5a0e23fefe | ||
|
92dd127d83 | ||
|
4e3289d0b8 | ||
|
2404d27f5b | ||
|
136562b837 | ||
|
e9f4e97155 | ||
|
896b5962db | ||
|
e39a40e2a5 | ||
|
8284a1c680 | ||
|
54508e6583 | ||
|
690522e89b | ||
|
315a453ba6 | ||
|
e611dfc1c4 | ||
|
cd098e7c41 | ||
|
225f2fe504 | ||
|
0a2fbb8b99 | ||
|
54b8e73a15 | ||
|
2d5f9581db | ||
|
dc456c240d |
67
debian/changelog
vendored
67
debian/changelog
vendored
@ -1,3 +1,70 @@
|
||||
livecd-rootfs (2.664.7) focal; urgency=medium
|
||||
|
||||
[ Stanislav German-Evtushenko <giner> / John Chittum ]
|
||||
* Send Vagrant serial connection to NULL. (LP: #1874453)
|
||||
|
||||
-- Robert C Jennings <robert.jennings@canonical.com> Wed, 23 Sep 2020 13:32:32 -0500
|
||||
|
||||
livecd-rootfs (2.664.6) focal; urgency=medium
|
||||
|
||||
[ Patrick Wu ]
|
||||
* Fix xrdp support in hyper-v images. LP: #1890980.
|
||||
|
||||
-- Steve Langasek <steve.langasek@ubuntu.com> Wed, 26 Aug 2020 14:06:31 -0700
|
||||
|
||||
livecd-rootfs (2.664.5) focal; urgency=medium
|
||||
|
||||
[ Robert C Jennings ]
|
||||
* Handle seeded lxd snap with channel name for ubuntu-cpc:minimized
|
||||
(LP: #1889470)
|
||||
|
||||
[ Cody Shepherd ]
|
||||
* Add dist-upgrade to bootable-buildd hook to ensure the built image
|
||||
doesn't contain vulnerable kernels or other packages. LP: #1891061.
|
||||
* Don't explicitly install grub-efi-amd64-signed, it's a dependency of
|
||||
shim-signed.
|
||||
|
||||
-- Steve Langasek <steve.langasek@ubuntu.com> Tue, 04 Aug 2020 12:39:27 -0700
|
||||
|
||||
livecd-rootfs (2.664.4) focal; urgency=medium
|
||||
|
||||
* snap_preseed: support channel specification with snap name (LP: #1882374)
|
||||
|
||||
-- Dimitri John Ledkov <xnox@ubuntu.com> Thu, 23 Jul 2020 19:12:10 +0100
|
||||
|
||||
livecd-rootfs (2.664.3) focal; urgency=medium
|
||||
|
||||
[ Łukasz 'sil2100' Zemczak ]
|
||||
* Enable overrides of UC20 grade dangerous channels - as this is possible.
|
||||
(LP: #1879350)
|
||||
|
||||
[ Iain Lane ]
|
||||
* Hack seeding of linux kernel in ubuntustudio/focal
|
||||
ubuntustudio-default-settings in focal release has a Recommends to this
|
||||
kernel, which makes it impossible to update the kernel later on, since we
|
||||
would install the -updates and release kernel, which isn't allowed and
|
||||
causes FTBFS. Hack out the focal-release kernel and let the rest of the
|
||||
build process pull in the right one. (LP: #1884915)
|
||||
|
||||
-- Iain Lane <iain.lane@canonical.com> Tue, 21 Jul 2020 16:25:18 +0100
|
||||
|
||||
livecd-rootfs (2.664.2) focal; urgency=medium
|
||||
|
||||
* Revert of initramfs package removal in KVM image (LP: #1880170)
|
||||
|
||||
-- Phil Roche <phil.roche@canonical.com> Fri, 22 May 2020 13:03:20 +0100
|
||||
|
||||
livecd-rootfs (2.664.1) focal; urgency=medium
|
||||
|
||||
* Bump only the UC20 pc image to 8GB, and keep Pi images as small as possible.
|
||||
(LP: #1875430)
|
||||
* ubuntu-image: fix focal+ pi images for armhf to use pi-armhf model name.
|
||||
(LP: #1876358)
|
||||
* ubuntu-image: drop ubuntu-image dep on riscv64, as not installable yet.
|
||||
(LP: #1876359)
|
||||
|
||||
-- Dimitri John Ledkov <xnox@ubuntu.com> Fri, 01 May 2020 20:08:23 +0100
|
||||
|
||||
livecd-rootfs (2.664) focal; urgency=medium
|
||||
|
||||
[ Patrick Viafore ]
|
||||
|
2
debian/control
vendored
2
debian/control
vendored
@ -38,7 +38,7 @@ Depends: ${misc:Depends},
|
||||
squashfs-tools (>= 1:3.3-1),
|
||||
sudo,
|
||||
u-boot-tools [armhf arm64],
|
||||
ubuntu-image [!i386],
|
||||
ubuntu-image [!i386 !riscv64],
|
||||
python3-vmdkstream [amd64 i386],
|
||||
xz-utils,
|
||||
zerofree
|
||||
|
@ -359,8 +359,16 @@ case $IMAGEFORMAT in
|
||||
CHANNEL="${CHANNEL:-edge}"
|
||||
case $MODEL in
|
||||
pc-amd64|pc-i386)
|
||||
[ -z "${SUBARCH:-}" ] \
|
||||
&& UBUNTU_IMAGE_ARGS="$UBUNTU_IMAGE_ARGS --image-size 3700M"
|
||||
if [ -z "${SUBARCH:-}" ]; then
|
||||
case $SUITE in
|
||||
xenial|bionic)
|
||||
UBUNTU_IMAGE_ARGS="$UBUNTU_IMAGE_ARGS --image-size 3700M"
|
||||
;;
|
||||
*)
|
||||
UBUNTU_IMAGE_ARGS="$UBUNTU_IMAGE_ARGS --image-size 8G"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
;;
|
||||
*) ;;
|
||||
esac
|
||||
@ -375,7 +383,9 @@ case $IMAGEFORMAT in
|
||||
UBUNTU_IMAGE_ARGS="$UBUNTU_IMAGE_ARGS -c $CHANNEL"
|
||||
;;
|
||||
*)
|
||||
UBUNTU_IMAGE_ARGS="--image-size 10G"
|
||||
if [ "${MODEL}" = "pi" ]; then
|
||||
MODEL=pi-armhf
|
||||
fi
|
||||
# Ubuntu Core 20
|
||||
# Currently uc20 assertions do not support global
|
||||
# channel overrides, instead we have per-channel models
|
||||
@ -386,6 +396,15 @@ case $IMAGEFORMAT in
|
||||
candidate|beta|edge|dangerous)
|
||||
MODEL="ubuntu-core-20-${MODEL#pc-}-${CHANNEL}"
|
||||
;;
|
||||
dangerous-*)
|
||||
# That being said, the dangerous grade *does*
|
||||
# support channel overrides, so we can use the
|
||||
# dangerous model assertion and override the channel
|
||||
# freely.
|
||||
MODEL="ubuntu-core-20-${MODEL#pc-}-dangerous"
|
||||
CHANNEL=${CHANNEL#dangerous-}
|
||||
UBUNTU_IMAGE_ARGS="$UBUNTU_IMAGE_ARGS -c $CHANNEL"
|
||||
;;
|
||||
*)
|
||||
echo "Unknown CHANNEL ${CHANNEL} specification for ${SUITE}"
|
||||
exit 1
|
||||
@ -669,6 +688,23 @@ case $PROJECT in
|
||||
|
||||
ubuntustudio-dvd)
|
||||
add_task install minimal standard ubuntustudio-desktop ubuntustudio-audio ubuntustudio-fonts ubuntustudio-graphics ubuntustudio-video ubuntustudio-publishing ubuntustudio-photography
|
||||
case $SUITE in
|
||||
focal)
|
||||
# ubuntustudio-default-settings in focal
|
||||
# release has a Recommends to this kernel,
|
||||
# which makes it impossible to update the
|
||||
# kernel later on, since we would install the
|
||||
# -updates and release kernel, which isn't
|
||||
# allowed and causes the squashfs to fail to
|
||||
# build. Hack out the focal-release kernel and
|
||||
# let the rest of the build process pull in the
|
||||
# right one. (See right below.)
|
||||
for package in linux-lowlatency linux-image-lowlatency linux-headers-lowlatency linux-image-5.4.0-26-lowlatency linux-headers-5.4.0-26-lowlatency; do
|
||||
sed -i "s/$/ -a --not -XFPackage ${package}/" \
|
||||
"config/package-lists/livecd-rootfs.list.chroot_install"
|
||||
done
|
||||
;;
|
||||
esac
|
||||
COMPONENTS='main restricted universe multiverse'
|
||||
case $ARCH in
|
||||
amd64|i386) KERNEL_FLAVOURS=lowlatency ;;
|
||||
@ -858,7 +894,7 @@ if [ "$PROJECT:${SUBPROJECT:-}" = ubuntu-cpc:minimized ]; then
|
||||
# build if we see such a snap.
|
||||
for snap in `cat config/seeded-snaps`; do
|
||||
case $snap in
|
||||
lxd)
|
||||
lxd | lxd=*)
|
||||
;;
|
||||
*)
|
||||
echo "Unexpected seeded snap for ubuntu-cpc:minimized build: $snap"
|
||||
|
@ -84,8 +84,7 @@ install_grub() {
|
||||
efi_target=arm-efi
|
||||
;;
|
||||
amd64)
|
||||
chroot mountpoint apt-get install -qqy grub-pc
|
||||
chroot mountpoint apt-get install -qqy grub-efi-amd64-signed shim-signed
|
||||
chroot mountpoint apt-get install -qqy grub-pc shim-signed
|
||||
efi_target=x86_64-efi
|
||||
;;
|
||||
esac
|
||||
|
@ -39,6 +39,9 @@ trap cleanup_linux_virtual EXIT
|
||||
# Install dependencies
|
||||
env DEBIAN_FRONTEND=noninteractive chroot "$mount_d" apt-get \
|
||||
update --assume-yes
|
||||
# Perform a dist-upgrade to pull in package updates
|
||||
env DEBIAN_FRONTEND=noninteractive chroot "$mount_d" apt-get \
|
||||
dist-upgrade --assume-yes
|
||||
env DEBIAN_FRONTEND=noninteractive chroot "$mount_d" apt-get \
|
||||
install -y lsb-release locales initramfs-tools busybox-initramfs \
|
||||
udev dbus netplan.io cloud-init openssh-server sudo snapd
|
||||
|
@ -626,11 +626,31 @@ snap_prepare() {
|
||||
snap_preseed() {
|
||||
# Preseed a snap in the image (snap_prepare must be called once prior)
|
||||
local CHROOT_ROOT=$1
|
||||
# $2 can be in the form of snap_name/classic=track/risk/branch
|
||||
local SNAP=$2
|
||||
# strip CHANNEL specification
|
||||
SNAP=${SNAP%=*}
|
||||
# strip /classic confinement
|
||||
local SNAP_NAME=${SNAP%/*}
|
||||
# Per Ubuntu policy, all seeded snaps (with the exception of the core
|
||||
# snap) must pull from stable/ubuntu-$(release_ver) as their channel.
|
||||
local CHANNEL=${3:-"stable/ubuntu-$(release_ver)"}
|
||||
# Seed from the specified channel (e.g. core18 latest/stable)
|
||||
# Or Channel endcoded in the snap name (e.g. lxd=4.0/stable/ubuntu-20.04)
|
||||
# Or Ubuntu policy default channel latest/stable/ubuntu-$(release_ver)
|
||||
local CHANNEL=${3:-}
|
||||
if [ -z "$CHANNEL" ]; then
|
||||
case $2 in
|
||||
*=*)
|
||||
CHANNEL=${2#*=}
|
||||
;;
|
||||
*)
|
||||
CHANNEL="stable/ubuntu-$(release_ver)"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# At this point:
|
||||
# SNAP_NAME is just the snap name
|
||||
# SNAP is either $SNAP_NAME or $SNAP_NAME/classic for classic confined
|
||||
# CHANNEL is the channel
|
||||
|
||||
if [ ! -e "$CHROOT_ROOT/var/lib/snapd/seed/assertions/model" ]; then
|
||||
echo "ERROR: Snap model assertion not present, snap_prepare must be called"
|
||||
|
@ -49,10 +49,6 @@ replace_kernel ${mount_d} "linux-kvm"
|
||||
chroot "${mount_d}" update-grub
|
||||
undivert_grub "${mount_d}"
|
||||
|
||||
# Remove initramfs for kvm image
|
||||
env DEBIAN_FRONTEND=noninteractive chroot "${mount_d}" apt-get \
|
||||
purge -y initramfs-tools busybox-initramfs
|
||||
|
||||
env DEBIAN_FRONTEND=noninteractive chroot "${mount_d}" rm \
|
||||
-rf /boot/initrd.img-* /boot/initrd.img
|
||||
|
||||
|
@ -154,8 +154,16 @@ Vagrant.configure("2") do |config|
|
||||
|
||||
config.vm.provider "virtualbox" do |vb|
|
||||
vb.customize [ "modifyvm", :id, "--uart1", "0x3F8", "4" ]
|
||||
# Creating a console log file is not an expected behavior for vagrant boxes. LP #1777827
|
||||
# vb.customize [ "modifyvm", :id, "--uartmode1", "file", File.join(Dir.pwd, "${prefix}-console.log") ]
|
||||
# Create a NULL serial port to skip console logging by default
|
||||
vb.customize [ "modifyvm", :id, "--uartmode1", "file", File::NULL ]
|
||||
# If console logging is desired, uncomment this line and remove prior
|
||||
# vb.customize [ "modifyvm", :id, "--uartmode1", "file", File.join(Dir.pwd, "${prefix}-console.log") ]
|
||||
# Ubuntu cloud images, by default, enable console=ttyS0. This enables serial consoles to
|
||||
# connect to the images. With the change related to LP #1777827, removing a serial
|
||||
# file logger, Vagrant image boot times increased and now run greater than 5 minutes
|
||||
# Creating a console log file is not an expected default behavior for vagrant boxes.
|
||||
# As a workaround, we create a console connection to File:NULL. LP #1874453
|
||||
# This is overrideable in user files to write to a local file
|
||||
end
|
||||
end
|
||||
EOF
|
||||
|
@ -55,8 +55,8 @@ EOF
|
||||
|
||||
CHANGED_FILE_SUFFIX=.replaced-by-desktop-img-build
|
||||
|
||||
# use vsock transport.
|
||||
sed -i${CHANGED_FILE_SUFFIX} -e 's/use_vsock=false/use_vsock=true/g' "${scratch_d}/etc/xrdp/xrdp.ini"
|
||||
# use vsock transport
|
||||
sed -i${CHANGED_FILE_SUFFIX} -e 's/port=3389/port=vsock:\/\/-1:3389/g' "${scratch_d}/etc/xrdp/xrdp.ini"
|
||||
# use rdp security.
|
||||
sed -i${CHANGED_FILE_SUFFIX} -e 's/security_layer=negotiate/security_layer=rdp/g' "${scratch_d}/etc/xrdp/xrdp.ini"
|
||||
# remove encryption validation.
|
||||
@ -74,6 +74,9 @@ exec /etc/xrdp/startwm.sh
|
||||
EOF
|
||||
chmod a+x "${scratch_d}/etc/xrdp/startubuntu.sh"
|
||||
|
||||
# set to use the system Window manager
|
||||
sed -i${CHANGED_FILE_SUFFIX} -e 's/EnableUserWindowManager=true/EnableUserWindowManager=0/g' "${scratch_d}/etc/xrdp/sesman.ini"
|
||||
|
||||
# use the script to setup the ubuntu session
|
||||
sed -i${CHANGED_FILE_SUFFIX} -e 's/startwm/startubuntu/g' "${scratch_d}/etc/xrdp/sesman.ini"
|
||||
|
||||
@ -100,6 +103,15 @@ ResultInactive=no
|
||||
ResultActive=yes
|
||||
EOF
|
||||
|
||||
cat >${scratch_d}/etc/polkit-1/localauthority/50-local.d/46-allow-update-repo.pkla <<EOF
|
||||
[Allow Package Management all Users]
|
||||
Identity=unix-user:*
|
||||
Action=org.freedesktop.packagekit.system-sources-refresh
|
||||
ResultAny=yes
|
||||
ResultInactive=yes
|
||||
ResultActive=yes
|
||||
EOF
|
||||
|
||||
sed -i${CHANGED_FILE_SUFFIX} -e 's|After=|ConditionPathExists=!/var/lib/oem-config/run\nAfter=|g' "${scratch_d}/lib/systemd/system/xrdp.service"
|
||||
|
||||
# End xrdp customisation
|
||||
|
Loading…
x
Reference in New Issue
Block a user