Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem zeroing free blocks of /var/tmp/file #1441

Open
zerocarbthirty opened this issue Dec 12, 2024 · 2 comments
Open

Problem zeroing free blocks of /var/tmp/file #1441

zerocarbthirty opened this issue Dec 12, 2024 · 2 comments

Comments

@zerocarbthirty
Copy link

Howdy, I'm using Lorax to create an alma9 liveimage that should be pxe bootable.

I know this gets complicated so I am trying to keep it very simple. Here is my command line:

livemedia-creator --live-rootfs-keep-size --make-pxe-live --image-name=file --ks newthing --iso=/isos/AlmaLinux-9.5-x86_64-minimal.iso

The entire installation process seems to complete inside of the KVM environment and then I just get this output:

2024-12-12 15:04:43,257: livemedia-creator v34.9.26-1
2024-12-12 15:04:43,257: selinux is Disabled
2024-12-12 15:04:43,292: disk_img = /var/tmp/junkintrunk19
2024-12-12 15:04:43,292: Using disk size of 10002MiB
2024-12-12 15:04:43,292: install_log = /root/virt-install.log
2024-12-12 15:04:43,456: qemu vnc=127.0.0.1:0
2024-12-12 15:04:43,456: Running qemu
2024-12-12 15:04:43,474: Processing logs from ('127.0.0.1', 58060)
2024-12-12 15:09:44,920: Installation finished without errors.
2024-12-12 15:09:44,920: Shutting down log processing
2024-12-12 15:09:44,921: unmounting the iso
2024-12-12 15:09:44,941: Disk Image install successful
2024-12-12 15:09:44,941: working dir is /var/tmp/lmc-work-vuoe831l
2024-12-12 15:09:44,957: Problem zeroing free blocks of /var/tmp/file
2024-12-12 15:09:44,957: Creating PXE live image failed.
2024-12-12 15:09:44,957: Creating PXE live image failed.

I dug through all of the generated logs. The only thing I see is in the program.log:

2024-12-12 15:09:44,907 DEBUG: Return code: 0
2024-12-12 15:09:44,921 INFO: Running... umount /var/tmp/lorax.imgutils.1j4bs124
2024-12-12 15:09:44,941 DEBUG: Return code: 0
2024-12-12 15:09:44,942 INFO: Running... kpartx -v -a -s /var/tmp/file
2024-12-12 15:09:44,947 DEBUG: Return code: 0
2024-12-12 15:09:44,947 INFO: Running... kpartx -d -s /var/tmp/file
2024-12-12 15:09:44,952 DEBUG: Return code: 0
2024-12-12 15:09:44,952 INFO: Running... /usr/sbin/fsck.ext4 -y -f -E discard /var/tmp/lmc-work-vuoe831l/squashfs_root/LiveOS/rootfs.img
2024-12-12 15:09:44,956 INFO: e2fsck 1.46.5 (30-Dec-2021)
2024-12-12 15:09:44,956 INFO: /usr/sbin/fsck.ext4: No such file or directory while trying to open /var/tmp/lmc-work-vuoe831l/squashfs_root/LiveOS/rootfs.img
2024-12-12 15:09:44,956 INFO: Possibly non-existent device?
2024-12-12 15:09:44,956 DEBUG: Return code: 8

I also noticed this in the livemedia.log:

2024-12-12 15:09:44,941 INFO pylorax: Disk Image install successful
2024-12-12 15:09:44,941 INFO pylorax: working dir is /var/tmp/lmc-work-vuoe831l
2024-12-12 15:09:44,942 DEBUG pylorax: disk image is /var/tmp/file
2024-12-12 15:09:44,947 DEBUG pylorax.imgutils:
2024-12-12 15:09:44,947 DEBUG pylorax.imgutils: Unable to mount anything from /var/tmp/file
2024-12-12 15:09:44,952 DEBUG pylorax: sys_root =
2024-12-12 15:09:44,957 ERROR pylorax: Problem zeroing free blocks of /var/tmp/file
2024-12-12 15:09:44,957 ERROR pylorax: Creating PXE live image failed.
2024-12-12 15:09:44,957 ERROR livemedia-creator: Creating PXE live image failed.

It seems like the output in program.log is simply a symptom of whatever problem causes the rootfs.img file not to be actually created in: /var/tmp/lmc-work-vuoe831l/squashfs_root/LiveOS/rootfs.img but I cannot find any reason for why that file isn't created in any of the logs.

Does anyone know what I might be doing incorrectly? or have any suggestions. I am guessing that the image it's creating is invalid because of this line "2024-12-12 15:09:44,947 DEBUG pylorax.imgutils: Unable to mount anything from /var/tmp/file" but I have no idea why.

Is it because I am using this in my kickstart? "part / --fstype="xfs" --size=10000"?

url --url=http://ord.mirror.rackspace.com/almalinux/9/BaseOS/x86_64/os/
repo --name=dell-system-update_independent --baseurl=https://linux.dell.com/repo/hardware/dsu/os_independent/
repo --name=dell-system-update_dependent --baseurl=https://linux.dell.com/repo/hardware/dsu/os_dependent/RHEL9_64/
firewall --enabled
rootpw --plaintext removethispw
auth --useshadow --enablemd5
keyboard --xlayouts=us --vckeymap=us
lang en_US.UTF-8
services --enabled rc-local
logging --level=info
timezone US/Eastern
clearpart --all --initlabel
part / --fstype="xfs" --size=10000
network --bootproto=dhcp --activate
shutdown

%post
yum -y update
%end

%packages
@core
libxml2
%end

I am trying to adapt this from an older setup that worked with CentOS 7.

thank you so much for any guidance.

@zerocarbthirty
Copy link
Author

I was actually able to get this to work with --no-virt in anaconda mode for the most part.

@bcl
Copy link
Contributor

bcl commented Dec 13, 2024

Oh, interesting. I'll try to look into this at some point, but I haven't actually used the PXE option in quite a while and time is currently short so it may be a while. If you have additional info in the meantime feel free to add it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants