mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 18:41:37 +00:00
Merge pull request #3417 from hyperized/patch-1
Fix label argument mkfs.btrfs
This commit is contained in:
commit
648d0729d4
@ -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"]
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"]
|
||||
|
@ -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"]
|
||||
|
@ -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"]
|
||||
|
@ -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":
|
||||
|
@ -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"]
|
||||
|
@ -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"]
|
||||
|
@ -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"]
|
||||
|
@ -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"]
|
||||
|
@ -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"]
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user