What happened:
When installing microshift RPM on Fedora 35 (x86_64) it gives this error:
/var/tmp/rpm-tmp.zpB674: line 16: fg: no job control
The package seems to be installed correctly. It might be some problem in the rpm SPEC, because the /var/hpvolumes directory does not get the correct SELinux context after the installation:
$ ls -ldZ /var/hpvolumes/
drwxr-xr-x. 1 root root system_u:object_r:var_t:s0 0 Feb 3 09:49 /var/hpvolumes/
This is the complete dnf message:
$ sudo dnf install -y microshift
Dependencies resolved.
======================================================================================================================================================
Package Architecture Version Repository Size
======================================================================================================================================================
Installing:
microshift x86_64 4.8.0-2022_02_02_194009.fc35 copr:copr.fedorainfracloud.org:group_redhat-et:microshift 34 M
Installing dependencies:
microshift-selinux noarch 4.8.0-2022_02_02_194009.fc35 copr:copr.fedorainfracloud.org:group_redhat-et:microshift 19 k
Transaction Summary
======================================================================================================================================================
Install 2 Packages
Total download size: 34 M
Installed size: 154 M
Downloading Packages:
(1/2): microshift-selinux-4.8.0-2022_02_02_194009.fc35.noarch.rpm 337 kB/s | 19 kB 00:00
(2/2): microshift-4.8.0-2022_02_02_194009.fc35.x86_64.rpm 27 MB/s | 34 MB 00:01
------------------------------------------------------------------------------------------------------------------------------------------------------
Total 27 MB/s | 34 MB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : microshift-selinux-4.8.0-2022_02_02_194009.fc35.noarch 1/2
Running scriptlet: microshift-selinux-4.8.0-2022_02_02_194009.fc35.noarch 1/2
/var/tmp/rpm-tmp.zpB674: line 16: fg: no job control
warning: %post(microshift-selinux-4.8.0-2022_02_02_194009.fc35.noarch) scriptlet failed, exit status 1
Error in POSTIN scriptlet in rpm package microshift-selinux
Installing : microshift-4.8.0-2022_02_02_194009.fc35.x86_64 2/2
Running scriptlet: microshift-4.8.0-2022_02_02_194009.fc35.x86_64 2/2
Running scriptlet: microshift-selinux-4.8.0-2022_02_02_194009.fc35.noarch 2/2
Running scriptlet: microshift-4.8.0-2022_02_02_194009.fc35.x86_64 2/2
Verifying : microshift-4.8.0-2022_02_02_194009.fc35.x86_64 1/2
Verifying : microshift-selinux-4.8.0-2022_02_02_194009.fc35.noarch 2/2
Installed:
microshift-4.8.0-2022_02_02_194009.fc35.x86_64 microshift-selinux-4.8.0-2022_02_02_194009.fc35.noarch
Complete!
What you expected to happen:
The installation completes without a warning.
How to reproduce it (as minimally and precisely as possible):
- Install COPR repo
- Install microshift RPM package
- It gives a warning "line 16: fg: no job control"
Environment:
- Microshift version (use
microshift version):
MicroShift Version: 4.8.0-0.microshift-2022-02-02-194009
Base OKD Version: 4.8.0-0.okd-2021-10-10-030117
cat /etc/os-release
NAME="Fedora Linux"
VERSION="35 (Cloud Edition)"
ID=fedora
VERSION_ID=35
VERSION_CODENAME=""
PLATFORM_ID="platform:f35"
PRETTY_NAME="Fedora Linux 35 (Cloud Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:35"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f35/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=35
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=35
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Cloud Edition"
VARIANT_ID=cloud
Linux microshift 5.15.18-200.fc35.x86_64 #1 SMP Sat Jan 29 13:54:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
What happened:
When installing microshift RPM on Fedora 35 (x86_64) it gives this error:
The package seems to be installed correctly. It might be some problem in the rpm SPEC, because the /var/hpvolumes directory does not get the correct SELinux context after the installation:
This is the complete dnf message:
What you expected to happen:
The installation completes without a warning.
How to reproduce it (as minimally and precisely as possible):
Environment:
microshift version):Hardware configuration:
VM with 8 GB of RAM and 2 vCPUs.
OS (e.g:
cat /etc/os-release):uname -a):