Merge pull request #3417 from hyperized/patch-1

Fix label argument mkfs.btrfs
This commit is contained in:
Rolf Neugebauer 2019-09-30 12:54:07 +02:00 committed by GitHub
commit 648d0729d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 26 additions and 26 deletions

View File

@ -15,7 +15,7 @@ onboot:
- name: sysfs
image: linuxkit/sysfs:v0.7
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
- name: mount
image: linuxkit/mount:v0.7
command: ["/usr/bin/mountie", "/var/lib/docker"]

View File

@ -13,7 +13,7 @@ onboot:
image: linuxkit/dhcpcd:v0.7
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
command: ["/usr/bin/format", "/dev/sda"]
- name: mount
image: linuxkit/mount:v0.7

View File

@ -13,7 +13,7 @@ onboot:
image: linuxkit/dhcpcd:v0.7
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
command: ["/usr/bin/format", "/dev/sda"]
- name: dm-crypt
image: linuxkit/dm-crypt:v0.7

View File

@ -20,7 +20,7 @@ onboot:
image: linuxkit/binfmt:v0.7
# Format and mount the disk image in /var/lib/docker
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
- name: mount
image: linuxkit/mount:v0.7
command: ["/usr/bin/mountie", "/var/lib"]

View File

@ -12,7 +12,7 @@ onboot:
- name: sysfs
image: linuxkit/sysfs:v0.7
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
- name: mount
image: linuxkit/mount:v0.7
command: ["/usr/bin/mountie", "/var/lib/docker"]

View File

@ -13,7 +13,7 @@ onboot:
image: linuxkit/dhcpcd:v0.7
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
- name: mount
image: linuxkit/mount:v0.7
command: ["/usr/bin/mountie", "/var/external"]

View File

@ -197,7 +197,7 @@ func format(d, label, fsType string, forced bool) error {
case "btrfs":
btrfsArgs := []string{"-f"}
if label != "" {
btrfsArgs = append(btrfsArgs, []string{"-l", label}...)
btrfsArgs = append(btrfsArgs, []string{"-L", label}...)
}
mkfsArgs = append(mkfsArgs, btrfsArgs...)
case "xfs":

View File

@ -15,7 +15,7 @@ onboot:
image: linuxkit/dhcpcd:v0.7
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
- name: mount
image: linuxkit/mount:v0.7
command: ["/usr/bin/mountie", "/var/lib/docker"]

View File

@ -15,7 +15,7 @@ onboot:
image: linuxkit/dhcpcd:v0.7
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
- name: mount
image: linuxkit/mount:v0.7
command: ["/usr/bin/mountie", "/var/lib/docker"]

View File

@ -12,7 +12,7 @@ onboot:
- name: sysfs
image: linuxkit/sysfs:v0.7
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
- name: mount
image: linuxkit/mount:v0.7
command: ["/usr/bin/mountie", "/var/lib/docker"]

View File

@ -13,7 +13,7 @@ onboot:
- name: sysctl
image: linuxkit/sysctl:v0.7
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
- name: mount
image: linuxkit/mount:v0.7
command: ["/usr/bin/mountie", "/var/lib"]

View File

@ -6,7 +6,7 @@ init:
- linuxkit/runc:c1f0db27e71d948f3134b31ce76276f843849b0a
onboot:
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
- name: mount
image: linuxkit/mount:v0.7
command: ["/usr/bin/mountie", "/var/lib/docker"]

View File

@ -9,7 +9,7 @@ onboot:
image: linuxkit/modprobe:v0.7
command: ["modprobe", "btrfs"]
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
command: ["/usr/bin/format", "-type", "btrfs" ]
- name: mount
image: linuxkit/mount:v0.7

View File

@ -6,7 +6,7 @@ init:
- linuxkit/runc:c1f0db27e71d948f3134b31ce76276f843849b0a
onboot:
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
command: ["/usr/bin/format", "-type", "xfs"]
- name: mount
image: linuxkit/mount:v0.7

View File

@ -6,7 +6,7 @@ init:
- linuxkit/runc:c1f0db27e71d948f3134b31ce76276f843849b0a
onboot:
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
command: ["/usr/bin/format"]
- name: mount
image: linuxkit/mount:v0.7

View File

@ -6,7 +6,7 @@ init:
- linuxkit/runc:c1f0db27e71d948f3134b31ce76276f843849b0a
onboot:
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
command: ["/usr/bin/format", "-label", "docker"]
- name: mount
image: linuxkit/mount:v0.7

View File

@ -6,7 +6,7 @@ init:
- linuxkit/runc:c1f0db27e71d948f3134b31ce76276f843849b0a
onboot:
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
command: ["/usr/bin/format", "@DEVICE@"]
- name: mount
image: linuxkit/mount:v0.7

View File

@ -9,7 +9,7 @@ onboot:
image: linuxkit/modprobe:v0.7
command: ["modprobe", "btrfs"]
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
command: ["/usr/bin/format", "-type", "btrfs" ]
- name: mount
image: linuxkit/mount:v0.7

View File

@ -6,7 +6,7 @@ init:
- linuxkit/runc:c1f0db27e71d948f3134b31ce76276f843849b0a
onboot:
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
command: ["/usr/bin/format", "-type", "xfs" ]
- name: mount
image: linuxkit/mount:v0.7

View File

@ -6,19 +6,19 @@ init:
- linuxkit/runc:c1f0db27e71d948f3134b31ce76276f843849b0a
onboot:
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
command: ["/usr/bin/format", "-verbose", "-type", "ext4", "/dev/sda"]
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
command: ["/usr/bin/format", "-verbose", "-type", "ext4", "/dev/sdb"]
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
command: ["/usr/bin/format", "-verbose", "-type", "xfs", "/dev/sda"]
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
command: ["/usr/bin/format", "-verbose", "-force", "-type", "xfs", "/dev/sdb"]
- name: test
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
binds:
- /check.sh:/check.sh
command: ["sh", "./check.sh"]

View File

@ -6,10 +6,10 @@ init:
- linuxkit/runc:c1f0db27e71d948f3134b31ce76276f843849b0a
onboot:
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
command: ["/usr/bin/format", "-label", "docker"]
- name: format
image: linuxkit/format:v0.7
image: linuxkit/format:65b9e0a76d0b9fb8ac5c5f3bc8d3131109290f56
command: ["/usr/bin/format", "-label", "foo"]
- name: mount
image: linuxkit/mount:v0.7