Skip to content

Commit f27ffe7

Browse files
committed
testing: Fix latest kernel installation on altlinux
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
1 parent 3863fe4 commit f27ffe7

File tree

3 files changed

+26
-22
lines changed

3 files changed

+26
-22
lines changed

testing/packages-altlinux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ MAKE_INITRD_PACKAGES_DEVEL+=" libkmod-devel zlib-devel bzlib-devel liblzma-devel
99
MAKE_INITRD_PACKAGES_DEVEL+=" libzstd-devel libelf-devel libtirpc-devel libcrypt-devel"
1010
MAKE_INITRD_PACKAGES_DEVEL+=" libjson-c-devel"
1111

12-
KERNEL_PACKAGES="kernel-image$KERNEL_FLAVOR"
12+
KERNEL_PACKAGES="kernel$KERNEL_FLAVOR"
1313

1414
BOOTLOADER_EFI_PACKAGES="grub-common grub-efi"
1515
BOOTLOADER_PC_PACKAGES="grub-common grub-pc"

testing/testing-altlinux-local

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ topdir="${topdir%/*/*}"
99
readonly VENDOR=altlinux
1010
readonly ARCH=x86_64
1111
readonly IMAGE=alt:sisyphus
12-
readonly KERNEL_FLAVOR=-std-def
12+
readonly KERNEL_FLAVOR=-latest
1313

1414
. "$topdir/testing/packages-$VENDOR"
1515

@@ -30,6 +30,8 @@ readonly statusdir="$topdir/testing/status"
3030
readonly top_workdir="$topdir/$workdir"
3131
readonly top_logdir="$topdir/$logdir"
3232

33+
apt_args="-y -qq -o=APT::Install::Virtual=true -o=APT::Install::VirtualVersion=true"
34+
3335
prepare_testsuite
3436

3537
for step in "$@"; do
@@ -40,8 +42,8 @@ for step in "$@"; do
4042
cat_exec "$top_workdir/run.sh" <<-EOF
4143
#!/bin/bash -efux
4244
43-
apt-get -y -qq update
44-
apt-get -y -qq install $MAKE_INITRD_PACKAGES_DEVEL
45+
apt-get $apt_args update
46+
apt-get $apt_args install $MAKE_INITRD_PACKAGES_DEVEL
4547
4648
cd "$builddir"
4749
rc=0
@@ -98,9 +100,9 @@ for step in "$@"; do
98100
'AUTODETECT =' \
99101
'FEATURES += compress cleanup'
100102
RUN rpm -ql filesystem | xargs -r mkdir -p
101-
RUN apt-get -y -qq update
102-
RUN apt-get -y -qq install $SYSIMAGE_PACKAGES $KERNEL_PACKAGES
103-
RUN apt-get -y -qq clean
103+
RUN apt-get $apt_args update
104+
RUN apt-get $apt_args install $SYSIMAGE_PACKAGES $KERNEL_PACKAGES
105+
RUN apt-get $apt_args clean
104106
RUN \
105107
find /lib/modules \( \
106108
-path '*/kernel/drivers/bluetooth/*' -o \
@@ -167,9 +169,9 @@ for step in "$@"; do
167169
MKINITRD=$builddir/.build/dest/usr/sbin/mkinitrd-make-initrd
168170
EOF1
169171
170-
apt-get -y -qq update
171-
apt-get -y -qq install $KICKSTART_PACKAGES
172-
apt-get -y -qq install $KERNEL_PACKAGES
172+
apt-get $apt_args update
173+
apt-get $apt_args install $KICKSTART_PACKAGES
174+
apt-get $apt_args install $KERNEL_PACKAGES
173175
174176
cp -L /boot/vmlinuz $builddir/$workdir/boot-ks-vmlinuz
175177
cp -L /boot/initrd.img $builddir/$workdir/boot-ks-initrd.img

testing/testing-altlinux-sshfs

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ topdir="${topdir%/*/*}"
99
readonly VENDOR=altlinux
1010
readonly ARCH=x86_64
1111
readonly IMAGE=alt:sisyphus
12-
readonly KERNEL_FLAVOR=-std-def
12+
readonly KERNEL_FLAVOR=-latest
1313

1414
. "$topdir/testing/packages-$VENDOR"
1515

@@ -34,6 +34,8 @@ readonly statusdir="$topdir/testing/status"
3434
readonly top_workdir="$topdir/$workdir"
3535
readonly top_logdir="$topdir/$logdir"
3636

37+
apt_args="-y -qq -o=APT::Install::Virtual=true -o=APT::Install::VirtualVersion=true"
38+
3739
prepare_testsuite
3840

3941
if [ ! -d "$top_workdir/.ssh" ]; then
@@ -49,8 +51,8 @@ for step in "$@"; do
4951
cat_exec "$top_workdir/run.sh" <<-EOF
5052
#!/bin/bash -efux
5153
52-
apt-get -y -qq update
53-
apt-get -y -qq install $MAKE_INITRD_PACKAGES_DEVEL
54+
apt-get $apt_args update
55+
apt-get $apt_args install $MAKE_INITRD_PACKAGES_DEVEL
5456
5557
cd "$builddir"
5658
rc=0
@@ -94,9 +96,9 @@ for step in "$@"; do
9496
-f - <<-EOF
9597
FROM $IMAGE
9698
RUN rpm -ql filesystem | xargs -r mkdir -p
97-
RUN apt-get -y -qq update
98-
RUN apt-get -y -qq install $SYSIMAGE_PACKAGES
99-
RUN apt-get -y -qq clean
99+
RUN apt-get $apt_args update
100+
RUN apt-get $apt_args install $SYSIMAGE_PACKAGES
101+
RUN apt-get $apt_args clean
100102
RUN \
101103
find /usr/share/license /usr/share/license-exception -delete; \
102104
find /usr/share/locale/ -mindepth 3 -maxdepth 3 -type f -name '*.mo' -delete; \
@@ -180,9 +182,9 @@ for step in "$@"; do
180182
MKINITRD=$builddir/.build/dest/usr/sbin/mkinitrd-make-initrd
181183
EOF1
182184
183-
apt-get -y -qq update
184-
apt-get -y -qq install $MAKE_INITRD_PACKAGES
185-
apt-get -y -qq install $KERNEL_PACKAGES
185+
apt-get $apt_args update
186+
apt-get $apt_args install $MAKE_INITRD_PACKAGES
187+
apt-get $apt_args install $KERNEL_PACKAGES
186188
187189
cp -L /boot/vmlinuz $builddir/$workdir/sshfsroot-vmlinuz
188190
cp -L /boot/initrd.img $builddir/$workdir/sshfsroot-initrd.img
@@ -201,9 +203,9 @@ for step in "$@"; do
201203

202204
cat > "$top_workdir/Dockerfile" <<-EOF
203205
FROM $IMAGE
204-
RUN apt-get -y -qq update
205-
RUN apt-get -y -qq install $SSH_SERVER_PACKAGES
206-
RUN apt-get -y -qq clean
206+
RUN apt-get $apt_args update
207+
RUN apt-get $apt_args install $SSH_SERVER_PACKAGES
208+
RUN apt-get $apt_args clean
207209
208210
ADD .ssh/id_rsa.pub /etc/openssh/authorized_keys/sftp
209211

0 commit comments

Comments
 (0)