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

actions/image-partition: check label length in verify stage #269

Commits on Jul 26, 2021

  1. actions/image-partition: check partition name length in verify stage

    The partition name (label) can be up to 11 characters long for vfat
    and 16 characters long for ext3/4.
    
    When partition name length is longer than 11 characters for vfat,
    it fails with below message,
    ==== image-partition ====
    cmdline: [mkfs.vfat -F32 -n efi456789012 /dev/vda1]
    Formatting partition 1 | mkfs.vfat: Label can be no longer than 11 characters
    Formatting partition 1 | mkfs.fat 4.2 (2021-01-31)
    Action `image-partition` failed at stage Run, error: exit status 1
    
    When partition name length is longer than 16 characters for ext2/3/4,
    it shows the below warning message,
    cmdline: [mkfs.ext4 -L root567890123456789 /dev/vda2]
    Formatting partition 2 | Warning: label too long; will be truncated to 'root567890123456'
    
    In case the partition name is longer than 11 for vfat, name is truncated
    to 11 characters and a warning message is reported. In case of ext3/4,
    it is truncated to 16 characters.
    
    Originally-by: Christopher Obbard <[email protected]>
    Signed-off-by: Vignesh Raman <[email protected]>
    vigneshraman committed Jul 26, 2021
    Configuration menu
    Copy the full SHA
    efe796f View commit details
    Browse the repository at this point in the history