Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: Add failing test to demonstrate issues with whitespace in part… #330

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cscutcher
Copy link
Contributor

… names

Reproduces #130.

For new style table the generated script has a few problems for example;

    sgdisk \
      --new=2:0:+100M \
      --change-name=2:disk-vdb-name with spaces \
      --typecode=2:EF00 \
      /dev/vdb

and

mkfs.vfat \
         \
        /dev/disk/by-partlabel/disk-vdb-name with spaces

Legacy table style generates slightly different problems e.g.;

parted -s /dev/vdb -- mkpart name with spaces  1MiB 100MiB

… names

Reproduces nix-community#130.

For new style table the generated script has a few problems for example;

```sh
    sgdisk \
      --new=2:0:+100M \
      --change-name=2:disk-vdb-name with spaces \
      --typecode=2:EF00 \
      /dev/vdb
```

and

```sh
mkfs.vfat \
         \
        /dev/disk/by-partlabel/disk-vdb-name with spaces
```

Legacy table style generates slightly different problems e.g.;

```sh
parted -s /dev/vdb -- mkpart name with spaces  1MiB 100MiB
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant