[Bug 1963725] Re: subiquity curtin apt-get update fails
Will Rouesnel
1963725 at bugs.launchpad.net
Tue Jul 30 01:18:39 UTC 2024
I have resolved at least one variant of this problem:
My issue was I was repacking an Ubuntu ISO (24.04) to use with
autoinstall.yaml.
The problem was that when the /cdrom directory was getting mounted, the
root - i.e. /cdrom would have permissions rwx------ (0700).
This was caused by how I did the repack: since I copied the filesystem
to a temporary directory, and then built a new ISO from there, the
*root* filesystem was being stored to the disk with (0700) permissions.
For whatever reason, this only turns up in the subiquity environment
during installation, not the "Try Ubuntu" live environment.
The fix for me was to force the dir-mode when rebuilding the ISO with
Xorriso:
My xorriso command now looks like this:
xorriso -as mkisofs \
-V "$(echo "${output_iso##*/}" | cut -c -32)" \
-o "${output_iso}" \
--grub2-mbr "${work_dir}/boot_hybrid.img" \
--protective-msdos-label \
-partition_offset 16 \
--mbr-force-bootable \
-append_partition 2 28732ac11ff8d211ba4b00a0c93ec93b "${efi_partition_img}" \
-appended_part_as_gpt \
-iso_mbr_part_type a2a0d0ebe5b9334487c068b6b72699c7 \
-c "/boot.catalog" \
-b "/boot/grub/i386-pc/eltorito.img" \
-no-emul-boot \
-boot-load-size 4 \
-boot-info-table \
--grub2-boot-info \
-eltorito-alt-boot \
-e '--interval:appended_partition_2:::' \
-no-emul-boot -J \
-dir-mode 0755 \
"${work_dir}" ; then
The key line is `-dir-mode 0755` - that fixed the problem entirely.
If you are having issues with apt-get in subiquity, *are you using a
repacked ISO?* Because that might be the problem.
IMO: subiquity should handle this situation though. It has full
permissions to control how /cdrom gets mounted and with what permissions
- it should set them wide open.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1963725
Title:
subiquity curtin apt-get update fails
Status in subiquity package in Ubuntu:
Triaged
Bug description:
CI/CD pipeline was functional until I switch over to using 20.04.4
ISO. When it gets to Curtin in-target apt-get update, it crashes with
error code 100. Google has not been useful in providing an answer. I
checked NTP on the ESXi host, and it is synced. Attached is the
subiquity crash report.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1963725/+subscriptions
More information about the foundations-bugs
mailing list