mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-16 05:11:31 +00:00
Imported 2.663
No reason for CPC update specified.
This commit is contained in:
parent
4b64af9bdf
commit
9f2c2fd5de
16
debian/changelog
vendored
16
debian/changelog
vendored
@ -1,3 +1,19 @@
|
|||||||
|
livecd-rootfs (2.663) focal; urgency=medium
|
||||||
|
|
||||||
|
* Run snap info on the downloaded snap, rather than against the
|
||||||
|
store. First of all snap info doesn't have --channel argument, thus
|
||||||
|
queries the wrong channel, and depening on the cohort, a different
|
||||||
|
snap might be visible too. Thus seed the base of the snap revision we
|
||||||
|
dowanloaded, rather than some random one from the store.
|
||||||
|
|
||||||
|
-- Dimitri John Ledkov <xnox@ubuntu.com> Fri, 17 Apr 2020 00:10:41 +0100
|
||||||
|
|
||||||
|
livecd-rootfs (2.662) focal; urgency=medium
|
||||||
|
|
||||||
|
* Print subiquity ssh login details on s390x line based consoles.
|
||||||
|
|
||||||
|
-- Dimitri John Ledkov <xnox@ubuntu.com> Thu, 16 Apr 2020 23:54:33 +0100
|
||||||
|
|
||||||
livecd-rootfs (2.661) focal; urgency=medium
|
livecd-rootfs (2.661) focal; urgency=medium
|
||||||
|
|
||||||
* Switch Ubuntu desktop to only hwe-20.04 kernel flavour.
|
* Switch Ubuntu desktop to only hwe-20.04 kernel flavour.
|
||||||
|
@ -482,34 +482,6 @@ _snap_preseed() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Pre-seed snap's base
|
|
||||||
case $SNAP_NAME in
|
|
||||||
snapd)
|
|
||||||
# snapd is self-contained, ignore base
|
|
||||||
;;
|
|
||||||
core|core[0-9][0-9])
|
|
||||||
# core and core## are self-contained, ignore base
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
# Determine which core snap is needed
|
|
||||||
local snap_info
|
|
||||||
|
|
||||||
snap_info=$(snap info --verbose "${SNAP_NAME}")
|
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "Failed to retrieve base of $SNAP_NAME!"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
local core_snap=$(echo "$snap_info" | grep '^base:' | awk '{print $2}')
|
|
||||||
|
|
||||||
# If snap info does not list a base use 'core'
|
|
||||||
core_snap=${core_snap:-core}
|
|
||||||
|
|
||||||
_snap_preseed $CHROOT_ROOT $core_snap stable
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
sh -c "
|
sh -c "
|
||||||
set -x;
|
set -x;
|
||||||
cd \"$CHROOT_ROOT/var/lib/snapd/seed\";
|
cd \"$CHROOT_ROOT/var/lib/snapd/seed\";
|
||||||
@ -528,6 +500,35 @@ _snap_preseed() {
|
|||||||
mv -v $seed_dir/*.assert $assertions_dir
|
mv -v $seed_dir/*.assert $assertions_dir
|
||||||
mv -v $seed_dir/*.snap $snaps_dir
|
mv -v $seed_dir/*.snap $snaps_dir
|
||||||
|
|
||||||
|
# Pre-seed snap's base
|
||||||
|
case $SNAP_NAME in
|
||||||
|
snapd)
|
||||||
|
# snapd is self-contained, ignore base
|
||||||
|
;;
|
||||||
|
core|core[0-9][0-9])
|
||||||
|
# core and core## are self-contained, ignore base
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
# Determine which core snap is needed
|
||||||
|
local snap_info
|
||||||
|
|
||||||
|
# snap info doesn't have --channel, so must run agains the downloaded snap
|
||||||
|
snap_info=$(snap info --verbose ${snaps_dir}/${SNAP_NAME}_[0-9]*.snap)
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Failed to retrieve base of $SNAP_NAME!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
local core_snap=$(echo "$snap_info" | grep '^base:' | awk '{print $2}')
|
||||||
|
|
||||||
|
# If snap info does not list a base use 'core'
|
||||||
|
core_snap=${core_snap:-core}
|
||||||
|
|
||||||
|
_snap_preseed $CHROOT_ROOT $core_snap stable
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Add the snap to the seed.yaml
|
# Add the snap to the seed.yaml
|
||||||
! [ -e $seed_yaml ] && echo "snaps:" > $seed_yaml
|
! [ -e $seed_yaml ] && echo "snaps:" > $seed_yaml
|
||||||
cat <<EOF >> $seed_yaml
|
cat <<EOF >> $seed_yaml
|
||||||
|
@ -67,6 +67,8 @@ chroot $INSTALLER_ROOT dpkg-reconfigure --frontend=noninteractive cloud-init
|
|||||||
|
|
||||||
if [ `dpkg --print-architecture` = s390x ]; then
|
if [ `dpkg --print-architecture` = s390x ]; then
|
||||||
chroot $INSTALLER_ROOT apt-get -y install s390-tools-zkey
|
chroot $INSTALLER_ROOT apt-get -y install s390-tools-zkey
|
||||||
|
# because z/VM x3270 is just ttyS0
|
||||||
|
cp -r $INSTALLER_ROOT/usr/lib/systemd/system/serial-getty@sclp_line0.service.d $INSTALLER_ROOT/usr/lib/systemd/system/serial-getty@ttyS0.service.d
|
||||||
fi
|
fi
|
||||||
chroot $INSTALLER_ROOT apt-get clean
|
chroot $INSTALLER_ROOT apt-get clean
|
||||||
|
|
||||||
|
@ -1,2 +1,6 @@
|
|||||||
|
[Unit]
|
||||||
|
After=cloud-final.service snapd.seeded.service
|
||||||
[Service]
|
[Service]
|
||||||
|
StandardOutput=tty
|
||||||
ExecStartPre=
|
ExecStartPre=
|
||||||
|
ExecStartPre=/usr/bin/snap run subiquity --ssh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user