Trigger full system relablel on the 1st boot

restorecon didn't work in appliance-tools setup. There is nothing in the
logs and the issue persist. Full system relabeling on the 1st boot
solves the problem, but will take a bit of time. Thankfully execution
is with -T0 thus it was fast (~1 min) on 4 core VM.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2024-05-02 12:54:00 +03:00
parent 3c69de94e0
commit 01d2a8785e
Signed by: davidlt
GPG Key ID: 7A5F42FAF91FACC3
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ echo fedora_rocks! | passwd --stdin riscv
#/usr/sbin/usermod -aG mock riscv
# Relabel after creating a new user
/sbin/restorecon -T0 -R -v /home
touch /.autorelabel
# Create Fedora RISC-V repo
cat << EOF > /etc/yum.repos.d/fedora-riscv.repo