subiquity:ubuntu/lunar

Last commit made on 2023-09-12
Get this branch:
git clone -b ubuntu/lunar https://git.launchpad.net/subiquity

Branch merges

Branch information

Name:
ubuntu/lunar
Repository:
lp:subiquity

Recent commits

ba42c5e... by Dan Bungert

Merge pull request #1794 from dbungert/lunar-security-pocket

lunar: security archive

c1166b1... by Olivier Gayot

mirror: do not let curtin decide the URL of the security archive

When the URL of the security archive is unset, curtin will set it to the
URL of the primary archive.

This is not the behavior we want for Ubuntu installations. On amd64 (and
i386), the URL of the security archive should be set to
http://security.ubuntu.com/ubuntu

On other architectures, it should be set to
http://ports.ubuntu.com/ubuntu-ports

Signed-off-by: Olivier Gayot <email address hidden>
(cherry picked from commit 55563136526cfe47be542f8e9e498d453cb6e706)

efb1bd8... by Olivier Gayot

mirror: for mirror-testing, disable the security suite

Mirror testing should focus on testing the primary mirror, not the
security archive - therefore we disable the -security suite.

Signed-off-by: Olivier Gayot <email address hidden>
(cherry picked from commit 79f2c4c4329185508b53741fee87a0259fd9bf63)

7ce11af... by Olivier Gayot

Merge pull request #1760 from ogayot/lp2013201-lunar

2023-08-09 - Backport manual size fix to ubuntu/lunar

b537313... by Olivier Gayot

filesystem: store the actual size in bytes alongside the human readable size

Currently, the partition form stores the size as a human readable value.
(e.g., 123456K, 1.1G, 1.876G, 100G). When we exit the size field (i.e., upon
losing focus), we convert the value to a number of bytes and then align
it up to the nearest MiB (or whatever the alignment requirement is).

Unfortunately, after computing the aligned value, we turn it back into a
human-readable string and store it as is. It is not okay because the
conversion does not ensure that the alignment requirement is still
honored.

For instance, if the user types in 1.1G, we do the following:

 * convert it to a number of bytes -> 1181116006.4 (surprise, it is not
   even an integer).

 * round it up to the nearest MiB -> 1181745152 (this is the correct
   value)

 * transform it into a human readable string and store it as is -> 1.1G
   - which actually corresponds to the original value.

This leads to an exception later when creating the partition:

    File "subiquity/models/filesystem.py", line 1841, in add_partition
      raise Exception(
   Exception: ('size %s or offset %s not aligned to %s', 1181116006, 1048576, 1048576)

Fixed by storing the actual size as a number of bytes - alongside the
human readable size.

Signed-off-by: Olivier Gayot <email address hidden>
(cherry picked from commit cda6c54b87b81edaf6b2623902eb16b6d86e5a75)

0902246... by Dan Bungert

Merge pull request #1665 from dbungert/lunar-curtin-ntfs

snapcraft: rev for ntfsresize change

0b4fc41... by Dan Bungert

snapcraft: rev for ntfsresize change

3bddb36... by Dan Bungert

Merge pull request #1663 from dbungert/lunar-no-probert-during-partitioning

Lunar no probert during partitioning

f1e24f3... by Olivier Gayot

storage: add API test to cover probert run finishing during partitioning

Signed-off-by: Olivier Gayot <email address hidden>
(cherry picked from commit 9e4cd77d9d3ac1a8ebc0e9202959a88e385b5bba)

7057f77... by Olivier Gayot

storage: add unit tests to cover probe data locking

Signed-off-by: Olivier Gayot <email address hidden>
(cherry picked from commit d8748c27fe8935e86a3e7802dcd4e6959f16b0fd)