You are not logged in.

#1 2024-10-17 16:44:36

ttc0419
Member
Registered: 2024-02-09
Posts: 4

DNF rootfs bootstrap transaction failed

I tried to bootstrap a rocky linux rootfs using "dnf install @minimal-environment" with dns.conf:

[main]
installroot=/root/rocky
install_weak_deps=False
group_package_types=mandatory

[baseos]
name=BaseOS
baseurl=http://mirror.nju.edu.cn/rocky/9.4/BaseOS/$basearch/os/

[appstream]
name=AppStream
baseurl=http://mirror.nju.edu.cn/rocky/9.4/AppStream/$basearch/os/

But the installation failed with several errors:

warning: posix.fork(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.spawn() or rpm.execute() instead
Error in POSTTRANS scriptlet in rpm package grub2-common
  Running scriptlet: rpm-4.16.1.3-29.el9.aarch64                                                                                                                                   271/271 
error: failed to mount private /: Invalid argument
error: Plugin unshare: hook scriplet_fork_post failed
warning: %posttrans(rpm-4.16.1.3-29.el9.aarch64) scriptlet failed, exit status 126

Anyway to fix it?

Offline

#2 2024-10-17 16:52:28

ttc0419
Member
Registered: 2024-02-09
Posts: 4

Re: DNF rootfs bootstrap transaction failed

Okay, it seems a bug in rpm, maybe consider apply the patch for rpm-tools?

Offline

Board footer

Powered by FluxBB