[Bug 1948884] Re: casper interactive_netmount looks for the wrong url on 20.04.3
Dominik Viererbe
1948884 at bugs.launchpad.net
Wed Jul 26 11:30:31 UTC 2023
*** This bug is a duplicate of bug 1990621 ***
https://bugs.launchpad.net/bugs/1990621
** This bug has been marked a duplicate of bug 1990621
PXE Boot contains wrong suggested link to ISO for live file system
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to casper in Ubuntu.
https://bugs.launchpad.net/bugs/1948884
Title:
casper interactive_netmount looks for the wrong url on 20.04.3
Status in casper package in Ubuntu:
Confirmed
Bug description:
In
https://git.launchpad.net/ubuntu/+source/casper/tree/scripts/casper?id=57382352df0fd500aeb132bfd3373c8463a7b46d#n385,
casper attempts to construct the iso URL for an interactive_netmount
as
```
case $DPKG_ARCH in
amd64)
server_url=https://releases.ubuntu.com/$UBUNTU_CODENAME/ubuntu-$VERSION_ID-live-server-$DPKG_ARCH.iso
desktop_url=https://releases.ubuntu.com/$UBUNTU_CODENAME/ubuntu-$VERSION_ID-desktop-$DPKG_ARCH.iso
;;
*)
server_url=http://cdimage.ubuntu.com/releases/$UBUNTU_CODENAME/release/ubuntu-$VERSION_ID-live-server-$DPKG_ARCH.iso
desktop_url=http://cdimage.ubuntu.com/releases/$UBUNTU_CODENAME/release/ubuntu-$VERSION_ID-desktop-$DPKG_ARCH.iso
;;
```
However, on Ubuntu 20.04.3, /etc/os-release in the initrd reads:
```
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
```
i.e. VERSION_ID is 20.04. For the above URL pattern to work, the VERSION_ID would have
to be 20.04.3. As a result, the interactive_netmount functionality fails with
a 404 on 20.04.3 unless the correct url is manually typed in.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1948884/+subscriptions
More information about the foundations-bugs
mailing list