~xypron/curtin:riscv64

Last commit made on 2022-03-10
Get this branch:
git clone -b riscv64 https://git.launchpad.net/~xypron/curtin
Only Heinrich Schuchardt can upload to this branch. If you are Heinrich Schuchardt please log in for upload directions.

Branch merges

Branch information

Name:
riscv64
Repository:
lp:~xypron/curtin

Recent commits

aed8c95... by Heinrich Schuchardt

Add link to Git repository

Provide Vcs-Git: and Vcs-Browser: fields.

Signed-off-by: Heinrich Schuchardt <email address hidden>

d5f0f00... by Heinrich Schuchardt

Add riscv64 architecture (LP: #1964482)

This adds riscv64 to the PORT_ARCHES. Unit test should be added later.

Signed-off-by: Heinrich Schuchardt <email address hidden>

3cd459c... by Michael Hudson-Doyle

examples: stop assuming curtin accounts for overhead of logical partitions

Curtin currently has the slightly surprising (to me at least) behaviour
of enlarging an extended partition to account for the overhead that
comes from the fact that logical partitions have to have gaps between
them. I do not intend to preserve this in v2 partitioning (and will
handle this in subiquity) so change the two example files that depend on
this.

Also correct an offset in examples/tests/multipath-reuse.yaml.

455fe08... by Michael Hudson-Doyle

block_meta_v2: zero start of partitions before they are created

Hooray for regression tests for bug 1718699.

600d6a1... by Michael Hudson-Doyle

examples: enlarge / for some more vmtests

These ones only fail on ppc64el for whatever reason.

5e20cff... by Michael Hudson-Doyle

skip BionicTestPartitionExistingRAID.test_correct_ptype

The collect script fails on Bionic because lsblk -o PTTYPE does not work
there, so just skip the test there. This was the only failing vmtest
overnight!!

0726cc6... by Michael Hudson-Doyle

examples: boost size of / in multipath-reuse.yaml

missed this previously because it failed for other reasons.

3a3f171... by Michael Hudson-Doyle

examples: add offsets to preserved partitions

Specifying the offset on a preserved partition is required with a v2
config when the partition does not immediately follow (up to alignment)
the preceding one.

7dcba09... by Michael Hudson-Doyle

block_meta_v2: change how we invoke sfdisk again, restore partprobe call

It's a bit disappointingly empirical but some multipath vmtests fail
with the current sfdisk arguments with "device busy" type errors. I
think this points to a bug somewhere else but the current partition code
works in this situation so massage things so that the new code does too.

Now we pass --no-tell-kernel to sfdisk, we do need to tell the kernel
about the changes so put back a call to partprobe to do this. This is
actually needed independent of the above change, because it seems sfdisk
with default arguments does not cause the kernel to remove the device
node for a deleted partition!

b8d6ac9... by Michael Hudson-Doyle

block_meta_v2: fix partitioning a device with sector size != 512

It turns out sfdisk takes input in the sector size of the device.

Also includes a fix for sysfs_partition_data in this case.