How can I install gpg key in a non interactive combistion 'script'

I have the following combustion setup:
combustion/script

#!/bin/bash

cp vconsole.conf /etc/vconsole.conf && chmod 644 /etc/vconsole.conf
rm /etc/localtime && ln -sf /usr/share/zoneinfo/Etc/UTC /etc/localtime
echo root:root | chpasswd

cp sshd_config /etc/ssh
mkdir -p /root/.ssh
echo <censored> >> /root/.ssh/authorized_keys

cp secondstage.sh /etc/
chmod 555 /etc/secondstage.sh
cp secondstage.service /etc/systemd/system/
cp firstbootreboot.service /etc/systemd/system/
systemctl enable secondstage.service
systemctl enable thirdstage.service
systemctl enable firstbootreboot.service

exec > >(exec tee -a /dev/tty0) 2>&1

combustion/firstbootreboot.service

[Unit]
Description=First Boot Reboot
After=secondstage.service

[Service]
Type=oneshot
ExecStart=rm /etc/systemd/system/firstbootreboot.service
ExecStart=rm /etc/systemd/system/default.target.wants/firstbootreboot.service
ExecStart=systemctl reboot

[Install]
WantedBy=default.target

combustion/secondstage.service

[Unit]
Description=Second Stage
Before=firstbootreboot.service
Wants=network-online.target
After=network-online.target
Before=firstbootreboot.service

[Service]
Type=oneshot
ExecStart=/etc/secondstage.sh

[Install]
RequiredBy=firstbootreboot.service

combustion/secondstage.sh

#!/bin/bash

echo Schrift 1
transactional-update --non-interactive --continue up
echo Schrift 2
transactional-update --non-interactive --continue pkg install --no-recommends containerd conntrack-tools socat ethtool
echo Schrift 3
transactional-update --non-interactive --continue run zypper --non-interactive addrepo https://download.opensuse.org/repositories/devel:kubic/openSUSE_Tumbleweed/devel:kubic.repo
echo Schrift 4
transactional-update --non-interactive --continue pkg install --no-recommends kubernetes1.29-kubeadm kubernetes1.29-kubelet
echo Schrift 5

mkdir -p /etc/modules-load.d

sudo tee /etc/modules-load.d/containerd.conf << EOF
overlay
br_netfilter
EOF

cat <<EOF | sudo tee /etc/modules-load.d/k8s.conf
overlay
br_netfilter
EOF

mkdir -p /etc/sysctl.d
cat <<EOF | sudo tee /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-iptables  = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.ipv4.ip_forward                 = 1
EOF

systemctl enable containerd
systemctl enable kubelet
systemctl enable kubeadm

And I am having the error in the second stage logs that the keys of the kubil repo are not installed not being installed, how can I either download the gpg in another machine and then add a install line of the downloaded gpg cert in the combusiton script or installing and accepting the keys directly in the combustion script?

@Misekayek0l Your script is missing the Combustion use network stanza… :man_shrugging:

No idea but the logs put clear that secondstage.service has network connection

@Misekayek0l I showed you in the other thread what needs to be in the combustion script, if you have no idea, then suggest you find some online training or get some on site support to resolve your issue.

What you said in the other place (exec > >(exec tee -a /dev/tty0) 2>&1) is in the combustion script, but because is a exec is impossible that it has any effect in the combustion script connectivity because anything after it will be never reached

Also has did you not read the script is the first thing here

Here are my logs:
journalclt -u secondstage.service:
https://paste.opensuse.org/pastes/1abd6a144462

As you can see I have full network connectivity in my secondstage.service secript

@Misekayek0l No, that is nothing to do with network connection for Combustion, that is just output for the script.

I will show one LAST time;

#!/bin/bash

# combustion: network
exec > >(exec tee -a /dev/tty0) 2>&1

The STATEMENT above the exec IS NOT A COMMENT, this tells combustion to use the network.

Then add your script requirements after having the above first, order IS important!

Added, and clearly there have been problems of communication. I am currently using a trick with systemd to get internet inside a script that in the first boot and certainly my problem is not connection. So how this can make senes?

@Misekayek0l Read the documentation here;
https://documentation.suse.com/sle-micro/5.5/html/SLE-Micro-all/cha-images-combustion.html Esp 9.2.1…

Tecnically my solution is after configuration (showed by the fact that I can ssh meanwhile my ‘configuraiton’ scirpt is executed), please read my combustion setup.

@Misekayek0l I’ve never needed any post setup, it all runs via combustion, I either lay down an image onto storage for bare-metal or added to a virtual machine, boot and done…

You might want to look at ansible and a playbook…

Probably I neither but because I was having problems about the line given. I did this hacky setup in the meantime

Now how can I install the GPG keys

@Misekayek0l with zypper ar and the appropriate options.

Which option?

addrepo (ar) [OPTIONS] <URI> <ALIAS>
addrepo (ar) [OPTIONS] <FILE.repo>

Add a repository to the system. The repository can be specified by its URI or can be read from
specified .repo file (even remote).

  Command options:

-r, --repo <FILE.repo>      Just another means to specify a .repo file to read.
-c, --check                 Probe URI.
-C, --no-check              Don't probe URI, probe later during refresh.
-p, --priority <PRIORITY>   Set priority of the repository. Default: 0
-k, --keep-packages         Enable RPM files caching. Default: false
-K, --no-keep-packages      Disable RPM files caching.
-g, --gpgcheck              Enable GPG check for this repository.
    --gpgcheck-strict       Enable strict GPG check for this repository.
    --gpgcheck-allow-unsigned
                            Short hand for '--gpgcheck-allow-unsigned-repo
                            --gpgcheck-allow-unsigned-package'.
    --gpgcheck-allow-unsigned-repo
                            Enable GPG check but allow the repository metadata to be unsigned.
    --gpgcheck-allow-unsigned-package
                            Enable GPG check but allow installing unsigned packages from this
                            repository.
-G, --no-gpgcheck           Disable GPG check for this repository.
    --default-gpgcheck      Use the global GPG check setting defined in /etc/zypp/zypp.conf. This is
                            the default.
-n, --name <NAME>           Set a descriptive name for the repository.
-e, --enable                Enable a disabled repository. Default: true
-d, --disable               Disable the repository (but don't remove it).
-f, --refresh               Enable auto-refresh of the repository. Default: false
-F, --no-refresh            Disable auto-refresh of the repository.

  Legacy options:

-t, --type                  The repository type is always autodetected. This option is ignored.

@Misekayek0l The -g

Does not look like it is working:

Feb 20 18:13:54 localhost systemd[1]: Starting Second Stage...
Feb 20 18:13:54 localhost secondstage.sh[1910]: Schrift 1
Feb 20 18:13:54 localhost secondstage.sh[1910]: Schrift 2
Feb 20 18:13:54 localhost secondstage.sh[1913]: Checking for newer version.
Feb 20 18:13:57 localhost secondstage.sh[1913]: New version found - updating...
Feb 20 18:13:59 localhost secondstage.sh[2095]: Loading repository data...
Feb 20 18:13:59 localhost secondstage.sh[2095]: Reading installed packages...
Feb 20 18:13:59 localhost secondstage.sh[2095]: Retrieving: transactional-update-4.1.6-150500.3.3.1.x86_64 (SLE Micro Update Repository) (1/1),  83.5 KiB
Feb 20 18:14:00 localhost secondstage.sh[2095]: Retrieving: transactional-update-4.1.6-150500.3.3.1.x86_64.rpm [......done (248.4 KiB/s)]
Feb 20 18:14:00 localhost secondstage.sh[2095]: .done]
Feb 20 18:14:01 localhost secondstage.sh[2139]: Loading repository data...
Feb 20 18:14:02 localhost secondstage.sh[2139]: Reading installed packages...
Feb 20 18:14:02 localhost secondstage.sh[2139]: Retrieving: libtukit4-4.1.6-150500.3.3.1.x86_64 (SLE Micro Update Repository) (1/2), 174.4 KiB
Feb 20 18:14:03 localhost secondstage.sh[2139]: Retrieving: libtukit4-4.1.6-150500.3.3.1.x86_64.rpm [........done (926.5 KiB/s)]
Feb 20 18:14:03 localhost secondstage.sh[2139]: .done]
Feb 20 18:14:03 localhost secondstage.sh[2139]: Retrieving: tukit-4.1.6-150500.3.3.1.x86_64 (SLE Micro Update Repository) (2/2),  79.8 KiB
Feb 20 18:14:03 localhost secondstage.sh[2139]: Retrieving: tukit-4.1.6-150500.3.3.1.x86_64.rpm [...done (844.7 KiB/s)]
Feb 20 18:14:03 localhost secondstage.sh[2139]: .done]
Feb 20 18:14:03 localhost secondstage.sh[1913]: transactional-update 4.1.6 started
Feb 20 18:14:03 localhost secondstage.sh[1913]: Options: --non-interactive --continue pkg install --no-recommends containerd conntrack-tools socat ethtool
Feb 20 18:14:04 localhost secondstage.sh[1913]: Separate /var detected.
Feb 20 18:14:12 localhost secondstage.sh[1913]: 2024-02-20 18:14:04 tukit 4.1.6 started
Feb 20 18:14:12 localhost secondstage.sh[1913]: 2024-02-20 18:14:04 Options: -c2 open
Feb 20 18:14:12 localhost secondstage.sh[1913]: 2024-02-20 18:14:06 Using snapshot 2 as base for new snapshot 3.
Feb 20 18:14:12 localhost secondstage.sh[1913]: 2024-02-20 18:14:06 /var/lib/overlay/2/etc
Feb 20 18:14:12 localhost secondstage.sh[1913]: 2024-02-20 18:14:06 Syncing /etc of previous snapshot 1 as base into new snapshot "/.snapshots/3/snapshot"
Feb 20 18:14:12 localhost secondstage.sh[1913]: 2024-02-20 18:14:06 SELinux is enabled.
Feb 20 18:14:12 localhost secondstage.sh[1913]: Relabeled /var/log from system_u:object_r:var_t:s0 to system_u:object_r:var_log_t:s0
Feb 20 18:14:12 localhost secondstage.sh[1913]: Relabeled /var/lib from system_u:object_r:var_t:s0 to system_u:object_r:var_lib_t:s0
Feb 20 18:14:12 localhost secondstage.sh[1913]: Relabeled /var/lib/zypp from system_u:object_r:rpm_var_cache_t:s0 to system_u:object_r:var_lib_t:s0
Feb 20 18:14:12 localhost secondstage.sh[1913]: Relabeled /var/lib/ca-certificates from system_u:object_r:var_t:s0 to system_u:object_r:cert_t:s0
Feb 20 18:14:12 localhost secondstage.sh[1913]: Relabeled /var/lib/alternatives from system_u:object_r:var_t:s0 to system_u:object_r:rpm_var_lib_t:s0
Feb 20 18:14:12 localhost secondstage.sh[1913]: ID: 3
Feb 20 18:14:12 localhost secondstage.sh[1913]: 2024-02-20 18:14:12 Transaction completed.
Feb 20 18:14:12 localhost secondstage.sh[1913]: Calling zypper install
Feb 20 18:14:18 localhost secondstage.sh[2399]: 2024-02-20 18:14:18 tukit 4.1.6 started
Feb 20 18:14:18 localhost secondstage.sh[2399]: 2024-02-20 18:14:18 Options: callext 3 zypper -R {} install -y --auto-agree-with-product-licenses --no-recommends containerd conntrack-tools socat ethtool
Feb 20 18:14:22 localhost secondstage.sh[2399]: 2024-02-20 18:14:22 Executing `zypper -R /tmp/transactional-update-M8XAHx install -y --auto-agree-with-product-licenses --no-recommends containerd conntrack-tools socat ethtool`:
Feb 20 18:14:23 localhost secondstage.sh[2399]: Loading repository data...
Feb 20 18:14:23 localhost secondstage.sh[2399]: Reading installed packages...
Feb 20 18:14:23 localhost secondstage.sh[2399]: Resolving package dependencies...
Feb 20 18:14:23 localhost secondstage.sh[2399]: The following 6 NEW packages are going to be installed:
Feb 20 18:14:23 localhost secondstage.sh[2399]:   conntrack-tools containerd ethtool libnetfilter_cthelper0 libnetfilter_cttimeout1 socat
Feb 20 18:14:23 localhost secondstage.sh[2399]: 6 new packages to install.
Feb 20 18:14:23 localhost secondstage.sh[2399]: Overall download size: 20.0 MiB. Already cached: 0 B. After the operation, additional 81.0 MiB will be used.
Feb 20 18:14:23 localhost secondstage.sh[2399]: Continue? [y/n/v/...? shows all options] (y): y
Feb 20 18:14:23 localhost secondstage.sh[2399]: Checking for file conflicts: [...done]
Feb 20 18:14:23 localhost secondstage.sh[2399]: Warning: 6 packages had to be excluded from file conflicts check because they are not yet downloaded.
Feb 20 18:14:23 localhost secondstage.sh[2399]:     Note: Checking for file conflicts requires not installed packages to be downloaded in advance in
Feb 20 18:14:23 localhost secondstage.sh[2399]:     order to access their file lists. See option '--download-in-advance / --dry-run --download-only'
Feb 20 18:14:23 localhost secondstage.sh[2399]:     in the zypper manual page for details.
Feb 20 18:14:23 localhost secondstage.sh[2399]: Retrieving: ethtool-5.14-150400.1.6.x86_64 (Leap Micro Main Repository) (1/6), 198.6 KiB
Feb 20 18:14:24 localhost secondstage.sh[2399]: Retrieving: ethtool-5.14-150400.1.6.x86_64.rpm [...........done (853.9 KiB/s)]
Feb 20 18:14:27 localhost secondstage.sh[2399]: (1/6) Installing: ethtool-5.14-150400.1.6.x86_64 [...done]
Feb 20 18:14:27 localhost secondstage.sh[2399]: Retrieving: libnetfilter_cthelper0-1.0.0-1.21.x86_64 (Leap Micro Main Repository) (2/6),  13.0 KiB
Feb 20 18:14:27 localhost secondstage.sh[2399]: Retrieving: libnetfilter_cthelper0-1.0.0-1.21.x86_64.rpm [..done (3.3 KiB/s)]
Feb 20 18:14:30 localhost secondstage.sh[2399]: (2/6) Installing: libnetfilter_cthelper0-1.0.0-1.21.x86_64 [..done]
Feb 20 18:14:30 localhost secondstage.sh[2399]: Retrieving: libnetfilter_cttimeout1-1.0.0-1.22.x86_64 (Leap Micro Main Repository) (3/6),  13.0 KiB
Feb 20 18:14:30 localhost secondstage.sh[2399]: Retrieving: libnetfilter_cttimeout1-1.0.0-1.22.x86_64.rpm [..done (3.3 KiB/s)]
Feb 20 18:14:32 localhost secondstage.sh[2399]: (3/6) Installing: libnetfilter_cttimeout1-1.0.0-1.22.x86_64 [..done]
Feb 20 18:14:32 localhost secondstage.sh[2399]: Retrieving: socat-1.7.3.2-4.10.x86_64 (Leap Micro Main Repository) (4/6), 227.4 KiB
Feb 20 18:14:32 localhost secondstage.sh[2399]: Retrieving: socat-1.7.3.2-4.10.x86_64.rpm [.......done (1.0 MiB/s)]
Feb 20 18:14:34 localhost secondstage.sh[2399]: (4/6) Installing: socat-1.7.3.2-4.10.x86_64 [...done]
Feb 20 18:14:34 localhost secondstage.sh[2399]: Retrieving: conntrack-tools-1.4.5-1.46.x86_64 (Leap Micro Main Repository) (5/6),  62.2 KiB
Feb 20 18:14:34 localhost secondstage.sh[2399]: Retrieving: conntrack-tools-1.4.5-1.46.x86_64.rpm [....done (236.9 KiB/s)]
Feb 20 18:14:35 localhost secondstage.sh[2399]: (5/6) Installing: conntrack-tools-1.4.5-1.46.x86_64 [..done]
Feb 20 18:14:35 localhost secondstage.sh[2399]: Retrieving: containerd-1.7.10-150000.106.1.x86_64 (SLE Micro Update Repository) (6/6),  19.5 MiB
Feb 20 18:14:43 localhost secondstage.sh[2399]: Retrieving: containerd-1.7.10-150000.106.1.x86_64.rpm [............................................................................done (2.6 MiB/s)]
Feb 20 18:14:55 localhost secondstage.sh[2399]: (6/6) Installing: containerd-1.7.10-150000.106.1.x86_64 [.............................................
Feb 20 18:14:55 localhost secondstage.sh[2399]: Running in chroot, ignoring command 'daemon-reload'
Feb 20 18:14:55 localhost secondstage.sh[2399]: done]
Feb 20 18:14:56 localhost secondstage.sh[2399]: 2024-02-20 18:14:56 Application returned with exit status 0.
Feb 20 18:14:58 localhost secondstage.sh[2399]: 2024-02-20 18:14:58 Transaction completed.
Feb 20 18:14:58 localhost secondstage.sh[1913]: Trying to rebuild kdump initrd
Feb 20 18:15:03 localhost secondstage.sh[2498]: 2024-02-20 18:15:03 tukit 4.1.6 started
Feb 20 18:15:03 localhost secondstage.sh[2498]: 2024-02-20 18:15:03 Options: close 3
Feb 20 18:15:11 localhost secondstage.sh[2498]: 2024-02-20 18:15:11 New default snapshot is #3 (/.snapshots/3/snapshot).
Feb 20 18:15:11 localhost secondstage.sh[2498]: 2024-02-20 18:15:11 Transaction completed.
Feb 20 18:15:11 localhost secondstage.sh[1913]: Please reboot your machine to activate the changes and avoid data loss.
Feb 20 18:15:11 localhost secondstage.sh[1913]: New default snapshot is #3 (/.snapshots/3/snapshot).
Feb 20 18:15:11 localhost secondstage.sh[1913]: transactional-update finished
Feb 20 18:15:11 localhost secondstage.sh[1910]: Schrift 3
Feb 20 18:15:11 localhost secondstage.sh[2577]: Checking for newer version.
Feb 20 18:15:13 localhost secondstage.sh[2577]: New version found - updating...
Feb 20 18:15:15 localhost secondstage.sh[2610]: Loading repository data...
Feb 20 18:15:15 localhost secondstage.sh[2610]: Reading installed packages...
Feb 20 18:15:15 localhost secondstage.sh[2610]: Retrieving: transactional-update-4.1.6-150500.3.3.1.x86_64 (SLE Micro Update Repository) (1/1),  83.5 KiB
Feb 20 18:15:16 localhost secondstage.sh[2610]: Retrieving: transactional-update-4.1.6-150500.3.3.1.x86_64.rpm [........done (139.3 KiB/s)]
Feb 20 18:15:16 localhost secondstage.sh[2610]: .done]
Feb 20 18:15:17 localhost secondstage.sh[2653]: Loading repository data...
Feb 20 18:15:18 localhost secondstage.sh[2653]: Reading installed packages...
Feb 20 18:15:18 localhost secondstage.sh[2653]: Retrieving: libtukit4-4.1.6-150500.3.3.1.x86_64 (SLE Micro Update Repository) (1/2), 174.4 KiB
Feb 20 18:15:19 localhost secondstage.sh[2653]: Retrieving: libtukit4-4.1.6-150500.3.3.1.x86_64.rpm [........done (873.4 KiB/s)]
Feb 20 18:15:19 localhost secondstage.sh[2653]: .done]
Feb 20 18:15:19 localhost secondstage.sh[2653]: Retrieving: tukit-4.1.6-150500.3.3.1.x86_64 (SLE Micro Update Repository) (2/2),  79.8 KiB
Feb 20 18:15:19 localhost secondstage.sh[2653]: Retrieving: tukit-4.1.6-150500.3.3.1.x86_64.rpm [..done (358.2 KiB/s)]
Feb 20 18:15:19 localhost secondstage.sh[2653]: .done]
Feb 20 18:15:19 localhost secondstage.sh[2577]: transactional-update 4.1.6 started
Feb 20 18:15:19 localhost secondstage.sh[2577]: Options: --non-interactive --continue run zypper --non-interactive addrepo -g https://download.opensuse.org/repositories/devel:kubic/openSUSE_Tumbleweed/devel:kubic.repo
Feb 20 18:15:19 localhost secondstage.sh[2577]: Separate /var detected.
Feb 20 18:15:25 localhost secondstage.sh[2577]: 2024-02-20 18:15:20 tukit 4.1.6 started
Feb 20 18:15:25 localhost secondstage.sh[2577]: 2024-02-20 18:15:20 Options: -c3 open
Feb 20 18:15:25 localhost secondstage.sh[2577]: 2024-02-20 18:15:21 Using snapshot 3 as base for new snapshot 4.
Feb 20 18:15:25 localhost secondstage.sh[2577]: 2024-02-20 18:15:21 /var/lib/overlay/3/etc
Feb 20 18:15:25 localhost secondstage.sh[2577]: ID: 4
Feb 20 18:15:25 localhost secondstage.sh[2577]: 2024-02-20 18:15:25 Transaction completed.
Feb 20 18:15:25 localhost secondstage.sh[2808]: 2024-02-20 18:15:25 tukit 4.1.6 started
Feb 20 18:15:25 localhost secondstage.sh[2808]: 2024-02-20 18:15:25 Options: call 4 zypper --non-interactive addrepo -g https://download.opensuse.org/repositories/devel:kubic/openSUSE_Tumbleweed/devel:kubic.repo
Feb 20 18:15:28 localhost secondstage.sh[2808]: 2024-02-20 18:15:28 Executing `zypper --non-interactive addrepo -g https://download.opensuse.org/repositories/devel:kubic/openSUSE_Tumbleweed/devel:kubic.repo`:
Feb 20 18:15:30 localhost secondstage.sh[2808]: Adding repository 'devel:kubic (openSUSE_Tumbleweed)' [...done]
Feb 20 18:15:30 localhost secondstage.sh[2808]: Repository 'devel:kubic (openSUSE_Tumbleweed)' successfully added
Feb 20 18:15:30 localhost secondstage.sh[2808]: URI         : https://download.opensuse.org/repositories/devel:/kubic/openSUSE_Tumbleweed/
Feb 20 18:15:30 localhost secondstage.sh[2808]: Enabled     : Yes
Feb 20 18:15:30 localhost secondstage.sh[2808]: GPG Check   : Yes
Feb 20 18:15:30 localhost secondstage.sh[2808]: Autorefresh : No
Feb 20 18:15:30 localhost secondstage.sh[2808]: Priority    : 99 (default priority)
Feb 20 18:15:30 localhost secondstage.sh[2808]: Repository priorities are without effect. All enabled repositories share the same priority.
Feb 20 18:15:30 localhost secondstage.sh[2808]: 2024-02-20 18:15:30 Application returned with exit status 0.
Feb 20 18:15:31 localhost secondstage.sh[2808]: 2024-02-20 18:15:31 Transaction completed.
Feb 20 18:15:31 localhost secondstage.sh[2832]: 2024-02-20 18:15:31 tukit 4.1.6 started
Feb 20 18:15:31 localhost secondstage.sh[2832]: 2024-02-20 18:15:31 Options: close 4
Feb 20 18:15:33 localhost secondstage.sh[2832]: Relabeled /var/lib/YaST2 from system_u:object_r:var_lib_t:s0 to system_u:object_r:rpm_var_lib_t:s0
Feb 20 18:15:33 localhost secondstage.sh[2832]: Relabeled /var/lib/YaST2/cookies from system_u:object_r:var_lib_t:s0 to system_u:object_r:rpm_var_lib_t:s0
Feb 20 18:15:35 localhost secondstage.sh[2832]: 2024-02-20 18:15:35 New default snapshot is #4 (/.snapshots/4/snapshot).
Feb 20 18:15:35 localhost secondstage.sh[2832]: 2024-02-20 18:15:35 Transaction completed.
Feb 20 18:15:35 localhost secondstage.sh[2577]: Please reboot your machine to activate the changes and avoid data loss.
Feb 20 18:15:35 localhost secondstage.sh[2577]: New default snapshot is #4 (/.snapshots/4/snapshot).
Feb 20 18:15:35 localhost secondstage.sh[2577]: transactional-update finished
Feb 20 18:15:35 localhost secondstage.sh[1910]: Schrift 4
Feb 20 18:15:35 localhost secondstage.sh[2931]: Checking for newer version.
Feb 20 18:15:37 localhost secondstage.sh[2931]: New version found - updating...
Feb 20 18:15:38 localhost secondstage.sh[2963]: Loading repository data...
Feb 20 18:15:38 localhost secondstage.sh[2963]: Reading installed packages...
Feb 20 18:15:39 localhost secondstage.sh[2963]: Retrieving: transactional-update-4.1.6-150500.3.3.1.x86_64 (SLE Micro Update Repository) (1/1),  83.5 KiB
Feb 20 18:15:39 localhost secondstage.sh[2963]: Retrieving: transactional-update-4.1.6-150500.3.3.1.x86_64.rpm [......done (281.6 KiB/s)]
Feb 20 18:15:39 localhost secondstage.sh[2963]: .done]
Feb 20 18:15:41 localhost secondstage.sh[3004]: Loading repository data...
Feb 20 18:15:41 localhost secondstage.sh[3004]: Reading installed packages...
Feb 20 18:15:41 localhost secondstage.sh[3004]: Retrieving: libtukit4-4.1.6-150500.3.3.1.x86_64 (SLE Micro Update Repository) (1/2), 174.4 KiB
Feb 20 18:15:42 localhost secondstage.sh[3004]: Retrieving: libtukit4-4.1.6-150500.3.3.1.x86_64.rpm [........done (862.2 KiB/s)]
Feb 20 18:15:42 localhost secondstage.sh[3004]: .done]
Feb 20 18:15:42 localhost secondstage.sh[3004]: Retrieving: tukit-4.1.6-150500.3.3.1.x86_64 (SLE Micro Update Repository) (2/2),  79.8 KiB
Feb 20 18:15:42 localhost secondstage.sh[3004]: Retrieving: tukit-4.1.6-150500.3.3.1.x86_64.rpm [..done]
Feb 20 18:15:42 localhost secondstage.sh[3004]: .done]
Feb 20 18:15:43 localhost secondstage.sh[2931]: transactional-update 4.1.6 started
Feb 20 18:15:43 localhost secondstage.sh[2931]: Options: --non-interactive --continue pkg install --no-recommends kubernetes1.29-kubeadm kubernetes1.29-kubelet
Feb 20 18:15:43 localhost secondstage.sh[2931]: Separate /var detected.
Feb 20 18:15:48 localhost secondstage.sh[2931]: 2024-02-20 18:15:43 tukit 4.1.6 started
Feb 20 18:15:48 localhost secondstage.sh[2931]: 2024-02-20 18:15:43 Options: -c4 open
Feb 20 18:15:48 localhost secondstage.sh[2931]: 2024-02-20 18:15:44 Using snapshot 4 as base for new snapshot 5.
Feb 20 18:15:48 localhost secondstage.sh[2931]: 2024-02-20 18:15:44 /var/lib/overlay/4/etc
Feb 20 18:15:48 localhost secondstage.sh[2931]: ID: 5
Feb 20 18:15:48 localhost secondstage.sh[2931]: 2024-02-20 18:15:48 Transaction completed.
Feb 20 18:15:48 localhost secondstage.sh[2931]: Calling zypper install
Feb 20 18:15:58 localhost secondstage.sh[3267]: 2024-02-20 18:15:58 tukit 4.1.6 started
Feb 20 18:15:58 localhost secondstage.sh[3267]: 2024-02-20 18:15:58 Options: callext 5 zypper -R {} install -y --auto-agree-with-product-licenses --no-recommends kubernetes1.29-kubeadm kubernetes1.29-kubelet
Feb 20 18:16:00 localhost secondstage.sh[3267]: 2024-02-20 18:16:00 Executing `zypper -R /tmp/transactional-update-LAgrJa install -y --auto-agree-with-product-licenses --no-recommends kubernetes1.29-kubeadm kubernetes1.29-kubelet`:
Feb 20 18:16:04 localhost secondstage.sh[3267]: New repository or package signing key received:
Feb 20 18:16:04 localhost secondstage.sh[3267]:   Repository:       devel:kubic (openSUSE_Tumbleweed)
Feb 20 18:16:04 localhost secondstage.sh[3267]:   Key Fingerprint:  2472 D6D0 D2F6 6AF8 7ABA 8DA3 4D64 3903 7506 0AA4
Feb 20 18:16:04 localhost secondstage.sh[3267]:   Key Name:         devel:kubic OBS Project <devel:kubic@build.opensuse.org>
Feb 20 18:16:04 localhost secondstage.sh[3267]:   Key Algorithm:    RSA 2048
Feb 20 18:16:04 localhost secondstage.sh[3267]:   Key Created:      Wed Dec  7 07:28:08 2022
Feb 20 18:16:04 localhost secondstage.sh[3267]:   Key Expires:      Fri Feb 14 07:28:08 2025
Feb 20 18:16:04 localhost secondstage.sh[3267]:   Rpm Name:         gpg-pubkey-75060aa4-63904088
Feb 20 18:16:04 localhost secondstage.sh[3267]:     Note: Signing data enables the recipient to verify that no modifications occurred after the data
Feb 20 18:16:04 localhost secondstage.sh[3267]:     were signed. Accepting data with no, wrong or unknown signature can lead to a corrupted system
Feb 20 18:16:04 localhost secondstage.sh[3267]:     and in extreme cases even to a system compromise.
Feb 20 18:16:04 localhost secondstage.sh[3267]:     Note: A GPG pubkey is clearly identified by its fingerprint. Do not rely on the key's name. If
Feb 20 18:16:04 localhost secondstage.sh[3267]:     you are not sure whether the presented key is authentic, ask the repository provider or check
Feb 20 18:16:04 localhost secondstage.sh[3267]:     their web site. Many providers maintain a web page showing the fingerprints of the GPG keys they
Feb 20 18:16:04 localhost secondstage.sh[3267]:     are using.
Feb 20 18:16:04 localhost secondstage.sh[3267]: Do you want to reject the key, trust temporarily, or trust always? [r/t/a/?] (r): r
Feb 20 18:16:04 localhost secondstage.sh[3267]: Error building the cache:
Feb 20 18:16:04 localhost secondstage.sh[3267]: [devel_kubic|https://download.opensuse.org/repositories/devel:/kubic/openSUSE_Tumbleweed/] Valid metadata not found at specified URL
Feb 20 18:16:04 localhost secondstage.sh[3267]: History:
Feb 20 18:16:04 localhost secondstage.sh[3267]:  - Signature verification failed for repomd.xml
Feb 20 18:16:04 localhost secondstage.sh[3267]:  - Can't provide /repodata/repomd.xml
Feb 20 18:16:04 localhost secondstage.sh[3267]: Warning: Skipping repository 'devel:kubic (openSUSE_Tumbleweed)' because of the above error.
Feb 20 18:16:04 localhost secondstage.sh[3267]: Some of the repositories have not been refreshed because of an error.
Feb 20 18:16:04 localhost secondstage.sh[3267]: Loading repository data...
Feb 20 18:16:05 localhost secondstage.sh[3267]: Reading installed packages...
Feb 20 18:16:05 localhost secondstage.sh[3267]: 'kubernetes1.29-kubeadm' not found in package names. Trying capabilities.
Feb 20 18:16:05 localhost secondstage.sh[3267]: No provider of 'kubernetes1.29-kubeadm' found.
Feb 20 18:16:05 localhost secondstage.sh[3267]: 'kubernetes1.29-kubelet' not found in package names. Trying capabilities.
Feb 20 18:16:05 localhost secondstage.sh[3267]: No provider of 'kubernetes1.29-kubelet' found.
Feb 20 18:16:05 localhost secondstage.sh[3267]: 2024-02-20 18:16:05 Application returned with exit status 104.
Feb 20 18:16:06 localhost secondstage.sh[3003]: ERROR: zypper install on /.snapshots/5/snapshot failed with exit code 104!
Feb 20 18:16:06 localhost secondstage.sh[3003]: Use '--interactive' for manual problem resolution.
Feb 20 18:16:06 localhost secondstage.sh[3003]: Removing snapshot #5...
Feb 20 18:16:06 localhost secondstage.sh[3351]: 2024-02-20 18:16:06 tukit 4.1.6 started
Feb 20 18:16:06 localhost secondstage.sh[3351]: 2024-02-20 18:16:06 Options: abort 5
Feb 20 18:16:09 localhost secondstage.sh[3351]: 2024-02-20 18:16:09 Discarding snapshot 5.
Feb 20 18:16:10 localhost secondstage.sh[3351]: 2024-02-20 18:16:10 Transaction completed.
Feb 20 18:16:10 localhost secondstage.sh[2931]: transactional-update finished
Feb 20 18:16:10 localhost secondstage.sh[1910]: Schrift 5
Feb 20 18:16:10 localhost secondstage.sh[3457]: /etc/secondstage.sh: line 15: /usr/bin/sudo: Permission denied
Feb 20 18:16:10 localhost secondstage.sh[3459]: /etc/secondstage.sh: line 20: /usr/bin/sudo: Permission denied
Feb 20 18:16:10 localhost secondstage.sh[3462]: /etc/secondstage.sh: line 26: /usr/bin/sudo: Permission denied
Feb 20 18:16:10 localhost secondstage.sh[3463]: Failed to enable unit: Unit file containerd.service does not exist.
Feb 20 18:16:10 localhost secondstage.sh[3464]: Failed to enable unit: Unit file kubelet.service does not exist.
Feb 20 18:16:10 localhost secondstage.sh[3465]: Failed to enable unit: Unit file kubeadm.service does not exist.
Feb 20 18:16:10 localhost systemd[1]: secondstage.service: Main process exited, code=exited, status=1/FAILURE
Feb 20 18:16:10 localhost systemd[1]: secondstage.service: Failed with result 'exit-code'.
Feb 20 18:16:10 localhost systemd[1]: Failed to start Second Stage.

Why are you using a Tumbleweed repository your system will break…

Because I need a repository with kudeadm and kubelet