-
Notifications
You must be signed in to change notification settings - Fork 22
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
sed: can't read ./qbuild/mnt/loader/loader.conf: No such file or directory #8
Comments
I have passed on this issue by manually creating a "/mnt/loader/loader.conf" file and running the script again. I am not sure what the future consequences would be, but it looks like it works just fine for now. Thank you. |
@hishine6 It is possible that mkosi doesn't setup systemd-boot for Ubuntu 18.x - Can you check if using a more recent Ubuntu for the guest helps? What that part of the script is trying to do is set up standalone booting in the image so it can be used outside of qemu's direct kernel boot. The setup is specific to the systemd-boot bootloader, so maybe if that isn't found, we should warn and continue without the bootable image setup instead of failing. |
@stellarhopper Does that mean that in my case, where only using the image to boot through qemu, it won't be a problem? Also, I have tried out the guest version to "focal"(20.XX), but unfortunately it returned the same results. Based on the advise you have gave me, I have looked into the mkosi(version 12) codes. Searching through the codes using the key word 'systemd-boot', I have found the following code part in "mkosi/mkosi/init.py"
It seems like it needs additional configuration in order to use the systemd-boot in ubuntu. Perhaps, something like I hope this makes sense and helps! |
Hello,
I am currently trying to apply this script with the following materials.
Since my host OS is Ubuntu(20.04), I am trying out the recently merged "Add Ubuntu Support" to install ubuntu-bionic(18.04). But I am facing the following error.
After successfully going through "build_kernel" and "make_rootfs" (I have used the command 'sudo run_qemu.sh --cxl --git-qemu') an error occurs during 'update_rootfs_boot_kernel'.
sed: can't read ./qbuild/mnt/loader/loader.conf: No such file or directory
In line 491 of 'run_qemu.sh', there is a reference to '$builddir/mnt/loader/loader.conf'. So to check this out, I have manually mounted the EFI system partition (using losetup, mount) and checked the /mnt/loader directory. It only contained a directory named 'entries'.
I tried to solve this myself, and looked through all the scripts, but I couldn't find any other part where it mounted the EFI system partition rather than 'update_rootfs_boot_kernel'. Could it be because of some sort of mkosi error?
Thank you for your time.
The text was updated successfully, but these errors were encountered: