Bug ID 1193642
Summary problem with pkcon install-local into /opt
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component MicroOS
Assignee kubic-bugs@opensuse.org
Reporter lubos.kocman@suse.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Hello

I just wanted to install local identity app from government but seems like
pkcon install-local failed to populated /opt and /usr/local/etc. The toplevel
dirs were simply not created

The rpm was converted from deb (published by .gov) into rpm by alien. followed
by pkcon install-local && reboot.

nstall complained at the very end (single line after message install finished)
about failed to create /etc/modules something dir in the snapshot directory as
it was read only. 


lkocman@localhost:~> rpm -q eObcanka 
eObcanka-3.2.0-2.x86_64

https://www.dropbox.com/s/4wziaff6d02rp5l/eObcanka-3.2.0-2.x86_64.rpm?dl=0

I'm running

NAME="openSUSE MicroOS"
# VERSION="20211207"


# These top level dirs are empty


lkocman@localhost:~> rpm -q -V eObcanka | grep missing | wc -l
1263

lkocman@localhost:~> rpm -q -V eObcanka | cut -c -26 | sort | uniq
missing     /opt/eObcanka
missing     /opt/eObcanka/
missing     /usr/local/etc

# empty opt

lkocman@localhost:~> ls -laZ /opt
total 0
dr-xr-xr-x. 1 root root system_u:object_r:usr_t:s0    0 Dec  9 15:08 .
drwxrwxr-x. 1 root root system_u:object_r:root_t:s0 142 Dec 12 10:10 ..

# /usr/local/etc is missing completely

lkocman@localhost:~> ls -laZ /usr/local/
total 0
drwxr-xr-x. 1 root root system_u:object_r:usr_t:s0  80 Dec  9 15:08 .
drwxr-xr-x. 1 root root system_u:object_r:usr_t:s0 124 Dec 12 10:23 ..
drwxr-xr-x. 1 root root system_u:object_r:bin_t:s0   0 Dec  9 15:08 bin
drwxr-xr-x. 1 root root system_u:object_r:usr_t:s0   0 Dec  9 15:08 include
drwxr-xr-x. 1 root root system_u:object_r:lib_t:s0   0 Dec  9 15:08 lib
drwxr-xr-x. 1 root root system_u:object_r:lib_t:s0   0 Dec  9 15:08 lib64
drwxr-xr-x. 1 root root system_u:object_r:bin_t:s0   0 Dec  9 15:08 libexec
drwxr-xr-x. 1 root root system_u:object_r:man_t:s0  80 Dec  9 15:08 man
drwxr-xr-x. 1 root root system_u:object_r:bin_t:s0   0 Dec  9 15:08 sbin
drwxr-xr-x. 1 root root system_u:object_r:usr_t:s0   0 Dec  9 15:08 share
drwxr-xr-x. 1 root root system_u:object_r:usr_t:s0   0 Dec  9 15:08 src
lkocman@localhost:~>


You are receiving this mail because: