Skip to content

Commit

Permalink
Test descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jsrain committed Oct 27, 2017
1 parent e689ede commit 44382ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 183 deletions.
181 changes: 0 additions & 181 deletions doc/boot-requirements.md
Original file line number Diff line number Diff line change
@@ -1,183 +1,2 @@

[//]: # (document was automatically created using 'rake doc:bootspecs')

# Y2Storage::BootRequirementsChecker
## needed partitions in an aarch64 system
- with a partitions-based proposal
- if there are no EFI partitions
- **requires only a new /boot/efi partition**
- if there is already an EFI partition
- and it does not have enough size
- **requires only a new /boot/efi partition**
- and it has enough size
- **only requires to use the existing EFI partition**
- with a LVM-based proposal
- if there are no EFI partitions
- **requires only a new /boot/efi partition**
- if there is already an EFI partition
- and it does not have enough size
- **requires only a new /boot/efi partition**
- and it has enough size
- **only requires to use the existing EFI partition**
- with an encrypted proposal
- if there are no EFI partitions
- **requires only a new /boot/efi partition**
- if there is already an EFI partition
- and it does not have enough size
- **requires only a new /boot/efi partition**
- and it has enough size
- **only requires to use the existing EFI partition**

## needed partitions in a PPC64 system
- in a non-PowerNV system (KVM/LPAR)
- with a partitions-based proposal
- if there are no PReP partitions in the target disk
- **requires only a PReP partition**
- if there is already a PReP partition in the disk
- **does not require any particular volume**
- with a LVM-based proposal
- if there are no PReP partitions in the target disk
- **requires /boot and PReP partitions**
- if there is already a PReP partition in the disk
- **requires only a /boot partition**
- with an encrypted proposal
- if there are no PReP partitions in the target disk
- **requires /boot and PReP partitions**
- if there is already a PReP partition in the disk
- **requires only a /boot partition**
- in bare metal (PowerNV)
- with a partitions-based proposal
- **does not require any particular volume**
- with a LVM-based proposal
- **requires only a /boot partition**
- with an encrypted proposal
- **requires only a /boot partition**
- when proposing a boot partition
- **requires /boot to be a non-encrypted ext4 partition in the booting disk**
- when aiming for the recommended size
- **requires /boot to be at least 200 MiB large**
- when aiming for the minimal size
- **requires /boot to be at least 100 MiB large**
- when proposing a PReP partition
- **requires it to be a non-encrypted partition**
- **requires it to be bootable (ms-dos partition table)**
- when aiming for the recommended size
- **requires it to be between 1MiB and 8MiB, despite the alignment**
- when aiming for the minimal size
- **requires it to be between 256KiB and 8MiB, despite the alignment**

## needed partitions in a S/390 system
- trying to install in a zfcp disk
- with a partitions-based proposal
- **requires only a /boot/zipl partition**
- with a LVM-based proposal
- **requires only a /boot/zipl partition**
- with an encrypted proposal
- **requires only a /boot/zipl partition**
- trying to install in a FBA DASD disk
- **raises an error**
- trying to install in a (E)CKD DASD disk
- if the disk is formatted as LDL
- **raises an error**
- if the disk is formatted as CDL
- with a partitions-based proposal
- **requires only a /boot/zipl partition**
- with a LVM-based proposal
- **requires only a /boot/zipl partition**
- with an encrypted proposal
- **requires only a /boot/zipl partition**
- when proposing a /boot/zipl partition
- **requires /boot/zipl to be ext2 with at least 100 MiB**
- **requires /boot/zipl to be a non-encrypted partition in the boot disk**
- when aiming for the recommended size
- **requires /boot/zipl to be at least 200 MiB large**
- when aiming for the minimal size
- **requires /boot/zipl to be at least 100 MiB large**

## needed partitions in a x86 system
- using UEFI
- with a partitions-based proposal
- if there are no EFI partitions
- **requires only a new /boot/efi partition**
- if there is already an EFI partition
- and it does not have enough size
- **requires only a new /boot/efi partition**
- and it has enough size
- **only requires to use the existing EFI partition**
- with a LVM-based proposal
- if there are no EFI partitions
- **requires only a new /boot/efi partition**
- if there is already an EFI partition
- and it does not have enough size
- **requires only a new /boot/efi partition**
- and it has enough size
- **only requires to use the existing EFI partition**
- with an encrypted proposal
- if there are no EFI partitions
- **requires only a new /boot/efi partition**
- if there is already an EFI partition
- and it does not have enough size
- **requires only a new /boot/efi partition**
- and it has enough size
- **only requires to use the existing EFI partition**
- not using UEFI (legacy PC)
- with GPT partition table
- in a partitions-based proposal
- if there is no GRUB partition
- **requires a new GRUB partition**
- if there is already a GRUB partition
- **does not require any particular volume**
- in a LVM-based proposal
- if there is no GRUB partition
- **requires a new GRUB partition**
- if there is already a GRUB partition
- **does not require any particular volume**
- in an encrypted proposal
- if there is no GRUB partition
- **requires a new GRUB partition**
- if there is already a GRUB partition
- **does not require any particular volume**
- with a MS-DOS partition table
- if the MBR gap is big enough to embed Grub
- in a partitions-based proposal
- **does not require any particular volume**
- in a LVM-based proposal
- if the MBR gap has additional space for grubenv
- **does not require any particular volume**
- if the MBR gap has no additional space
- **requires only a /boot partition**
- in an encrypted proposal
- if the MBR gap has additional space for grubenv
- **does not require any particular volume**
- if the MBR gap has no additional space
- **requires only a /boot partition**
- with too small MBR gap
- in a partitions-based proposal
- if proposing root (/) as Btrfs
- **does not require any particular volume**
- if proposing root (/) as non-Btrfs
- **raises an exception**
- in a LVM-based proposal
- **raises an exception**
- in an encrypted proposal
- **raises an exception**
- when proposing a boot partition
- **requires /boot to be a non-encrypted ext4 partition in the booting disk**
- when aiming for the recommended size
- **requires /boot to be at least 200 MiB large**
- when aiming for the minimal size
- **requires /boot to be at least 100 MiB large**
- when proposing an new GRUB partition
- **requires it to have the correct id**
- **requires it to be a non-encrypted partition**
- when aiming for the recommended size
- **requires it to be between 1 and 8MiB, despite the alignment**
- when aiming for the minimal size
- **requires it to be between 256KiB and 8MiB, despite the alignment**
- when proposing an new EFI partition
- **requires /boot/efi to be a non-encrypted vfat partition**
- **requires /boot/efi to be close enough to the beginning of disk**
- when aiming for the recommended size
- **requires /boot/efi to be at least 500 MiB large**
- when aiming for the minimal size
- **requires /boot/efi to be at least 33 MiB large**
4 changes: 2 additions & 2 deletions test/support/proposed_partitions_examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
context "when aiming for the recommended size" do
let(:target) { :desired }

it "requires /boot/efi to be at least 500 MiB large" do
it "requires /boot/efi to be exactly 500 MiB large" do
expect(efi_part.min_size).to eq 500.MiB
expect(efi_part.max_size).to eq 500.MiB
end
Expand All @@ -111,7 +111,7 @@
context "when aiming for the minimal size" do
let(:target) { :min }

it "requires /boot/efi to be at least 33 MiB large" do
it "requires /boot/efi to be between 33 MiB and 500 MiB large" do
expect(efi_part.min_size).to eq 33.MiB
expect(efi_part.max_size).to eq 500.MiB
end
Expand Down

0 comments on commit 44382ae

Please sign in to comment.