Cannot perform local builds for CentOS_7
Hello list, I'm trying to perform a local build of a package for CentOS_7. I can successfully execute "osc build openSUSE_Leap_15.3" for the package. It runs inside a qemu-kvm virtual machine and works as expected. However, I cannot run "osc build CentOS_7" for the same package. This is what I'm observing: The beginning of the log looks normal: Building nccmp.spec for CentOS_7/x86_64 Getting buildconfig from server and store to /home/***/nccmp/.osc/_buildconfig-CentOS_7-x86_64 Getting buildinfo from server and store to /home/***/nccmp/.osc/_buildinfo-CentOS_7-x86_64.xml Updating cache of required packages 0.0% cache miss. 253/253 dependencies cached. Skipping verification of package signatures due to secure VM build Writing build configuration Running build VM_ROOT: /var/tmp/build-root/CentOS_7-x86_64/img, VM_SWAP: /var/tmp/build-root/CentOS_7-x86_64/swap 0+0 records in 0+0 records out 0 bytes copied, 1.5748e-05 s, 0.0 kB/s logging output to /var/tmp/build-root/CentOS_7-x86_64/.build.log... [ 0s] Using BUILD_ROOT=/var/tmp/build-root/CentOS_7-x86_64/.mount [ 0s] Using BUILD_ARCH=x86_64:i686:i586:i486:i386 [ 0s] Doing kvm build in /var/tmp/build-root/CentOS_7-x86_64/img [ 0s] [ 0s] [ 0s] rain started "build nccmp.spec" at Fri Sep 30 07:44:19 UTC 2022. [ 0s] [ 0s] [ 0s] processing recipe /home/***/nccmp/nccmp.spec ... [ 0s] running changelog2spec --target rpm --file /home/***/nccmp/nccmp.spec [ 0s] init_buildsystem --configdir /usr/lib/build/configs --cachedir /var/cache/build --prepare --rpmlist /tmp/rpmlist.y2fk5wwg /home/***/nccmp/nccmp.spec ... [ 1s] copying packages... [ 1s] reordering...cycle: glibc -> basesystem -> setup -> filesystem -> bash [ 1s] breaking dependency glibc -> basesystem ... and then there are plenty of cycle resolutions. After that, the log has: [ 1s] done [ 1s] objdump: /boot/vmlinuz: warning: ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section .bss [ 1s] booting kvm... [ 1s] /usr/bin/qemu-kvm -nodefaults -no-reboot -nographic -vga none -cpu host -object rng-random,filename=/dev/random,id=rng0 -device virtio-rng-pci,rng=rng0 -runas qemu -net none -kernel /boot/vmlinuz -initrd /boot/initrd -append root=/dev/sda rootfstype=ext3 rootflags=data=writeback,nobarrier,commit=150,noatime ext4.allow_unsupported=1 kpti=off pti=off spectre_v2=off panic=1 quiet no-kvmclock elevator=noop nmi_watchdog=0 rw rd.driver.pre=binfmt_misc console=ttyS0 init=/.build/build -m 512 -drive file=/var/tmp/build-root/CentOS_7-x86_64/img,format=raw,if=none,id=disk,cache=unsafe -device ide-hd,drive=disk,serial=0 -drive file=/var/tmp/build-root/CentOS_7-x86_64/swap,format=raw,if=none,id=swap,cache=unsafe -device ide-hd,drive=swap,serial=1 -serial stdio -chardev socket,id=monitor,server,nowait,path=/var/tmp/build-root/CentOS_7-x86_64/img.qemu/monitor -mon chardev=monitor,mode=readline -smp 12 [ 2s] SeaBIOS (version rel-1.12.0-0-ga698c89-rebuilt.opensuse.org) [ 5s] Booting from ROM..[ OK ] Started Show Plymouth Boot Screen. [ 5s] [ OK ] Started Forward Password Requests to Plymouth Directory Watch. [ 5s] [ OK ] Reached target Paths. [ 5s] [ OK ] Found device QEMU_HARDDISK. [ 5s] [ OK ] Reached target Initrd Root Device. [ 139s] [ 136.097593] dracut-initqueue[354]: Warning: dracut-initqueue timeout - starting timeout scripts and many repetitions of the last line until the boot finally gives up and drops to emergency mode: [ 204s] [ 201.761983] dracut-initqueue[354]: Warning: Could not boot. [ 204s] Starting Setup Virtual Console... [ 204s] [ OK ] Started Setup Virtual Console. [ 204s] Starting Dracut Emergency Shell... [ 204s] Warning: /dev/disk/by-uuid/EC2D-A5DA does not exist [ 204s] [ 204s] [ 204s] Generating "/run/initramfs/rdsosreport.txt" [ 204s] [ 204s] [ 204s] Entering emergency mode. Exit the shell to continue. [ 204s] Type "journalctl" to view system logs. [ 204s] You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot [ 204s] Give root password for maintenance I aborted at that point. It seems the root file system is missing. Could anyone give me a hint as to what components are missing, and how I could install them? Many thanks, Edward
Sorry to bring this topic up again, but I can't get this to work. Is there anyone out there who has succeeded in performing local builds for CentOS? I think it would help me to look at the log of a successful build. Kind regards Edward
participants (1)
-
Edward Baudrez