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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1963725

Title:
  subiquity curtin apt-get update fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1963725/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to