mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 01:59:07 +00:00
commit
e3284d50e0
@ -20,7 +20,7 @@ onboot:
|
||||
image: linuxkit/binfmt:4b1d7a8dab03c09855fb4b6060a42b2294674b47
|
||||
# Format and mount the disk image in /var/lib/docker
|
||||
- name: format
|
||||
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
||||
image: linuxkit/format:5a1140cb65e733f26de727fa684fef1326e9d5ab
|
||||
- name: mount
|
||||
image: linuxkit/mount:b346ec277b7074e5c9986128a879c10a1d18742b
|
||||
command: ["/usr/bin/mountie", "/var/lib"]
|
||||
|
@ -15,7 +15,7 @@ onboot:
|
||||
- name: sysfs
|
||||
image: linuxkit/sysfs:1284b4a7061a5cc426425f0fb00748192505a05f
|
||||
- name: format
|
||||
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
||||
image: linuxkit/format:5a1140cb65e733f26de727fa684fef1326e9d5ab
|
||||
- name: mount
|
||||
image: linuxkit/mount:b346ec277b7074e5c9986128a879c10a1d18742b
|
||||
command: ["/usr/bin/mountie", "/var/lib/docker"]
|
||||
|
@ -12,7 +12,7 @@ onboot:
|
||||
- name: sysfs
|
||||
image: linuxkit/sysfs:1284b4a7061a5cc426425f0fb00748192505a05f
|
||||
- name: format
|
||||
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
||||
image: linuxkit/format:5a1140cb65e733f26de727fa684fef1326e9d5ab
|
||||
- name: mount
|
||||
image: linuxkit/mount:b346ec277b7074e5c9986128a879c10a1d18742b
|
||||
command: ["/usr/bin/mountie", "/var/lib/docker"]
|
||||
|
@ -13,7 +13,7 @@ onboot:
|
||||
image: linuxkit/dhcpcd:0d59a6cc03412289ef4313f2491ec666c1715cc9
|
||||
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
||||
- name: format
|
||||
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
||||
image: linuxkit/format:5a1140cb65e733f26de727fa684fef1326e9d5ab
|
||||
- name: mount
|
||||
image: linuxkit/mount:b346ec277b7074e5c9986128a879c10a1d18742b
|
||||
command: ["/usr/bin/mountie", "/var/external"]
|
||||
|
@ -171,7 +171,15 @@ func format(d, label, fsType string, forced bool) error {
|
||||
return fmt.Errorf("Error running blockdev: %v", err)
|
||||
}
|
||||
|
||||
partition := fmt.Sprintf("%s1", d)
|
||||
var partition string
|
||||
// check if last char is numeric in case of nvme
|
||||
c := d[len(d)-1]
|
||||
if c > '0' && c < '9' {
|
||||
partition = fmt.Sprintf("%sp1", d)
|
||||
} else {
|
||||
partition = fmt.Sprintf("%s1", d)
|
||||
}
|
||||
|
||||
if err := refreshDevicesAndWaitFor(partition); err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ onboot:
|
||||
image: linuxkit/dhcpcd:0d59a6cc03412289ef4313f2491ec666c1715cc9
|
||||
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
||||
- name: format
|
||||
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
||||
image: linuxkit/format:5a1140cb65e733f26de727fa684fef1326e9d5ab
|
||||
- name: mount
|
||||
image: linuxkit/mount:b346ec277b7074e5c9986128a879c10a1d18742b
|
||||
command: ["/usr/bin/mountie", "/var/lib/docker"]
|
||||
|
@ -15,7 +15,7 @@ onboot:
|
||||
image: linuxkit/dhcpcd:0d59a6cc03412289ef4313f2491ec666c1715cc9
|
||||
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
||||
- name: format
|
||||
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
||||
image: linuxkit/format:5a1140cb65e733f26de727fa684fef1326e9d5ab
|
||||
- name: mount
|
||||
image: linuxkit/mount:b346ec277b7074e5c9986128a879c10a1d18742b
|
||||
command: ["/usr/bin/mountie", "/var/lib/docker"]
|
||||
|
@ -12,7 +12,7 @@ onboot:
|
||||
- name: sysfs
|
||||
image: linuxkit/sysfs:1284b4a7061a5cc426425f0fb00748192505a05f
|
||||
- name: format
|
||||
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
||||
image: linuxkit/format:5a1140cb65e733f26de727fa684fef1326e9d5ab
|
||||
- name: mount
|
||||
image: linuxkit/mount:b346ec277b7074e5c9986128a879c10a1d18742b
|
||||
command: ["/usr/bin/mountie", "/var/lib/docker"]
|
||||
|
@ -13,7 +13,7 @@ onboot:
|
||||
- name: sysctl
|
||||
image: linuxkit/sysctl:4c1ef93bb5eb1a877318db4b2daa6768ed002e21
|
||||
- name: format
|
||||
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
||||
image: linuxkit/format:5a1140cb65e733f26de727fa684fef1326e9d5ab
|
||||
- name: mount
|
||||
image: linuxkit/mount:b346ec277b7074e5c9986128a879c10a1d18742b
|
||||
command: ["/usr/bin/mountie", "/var/lib"]
|
||||
|
@ -6,7 +6,7 @@ init:
|
||||
- linuxkit/runc:abc3f292653e64a2fd488e9675ace19a55ec7023
|
||||
onboot:
|
||||
- name: format
|
||||
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
||||
image: linuxkit/format:5a1140cb65e733f26de727fa684fef1326e9d5ab
|
||||
- name: mount
|
||||
image: linuxkit/mount:b346ec277b7074e5c9986128a879c10a1d18742b
|
||||
command: ["/usr/bin/mountie", "/var/lib/docker"]
|
||||
|
@ -9,7 +9,7 @@ onboot:
|
||||
image: linuxkit/modprobe:1a192d168adadec47afa860e3fc874fbc2a823ff
|
||||
command: ["modprobe", "btrfs"]
|
||||
- name: format
|
||||
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
||||
image: linuxkit/format:5a1140cb65e733f26de727fa684fef1326e9d5ab
|
||||
command: ["/usr/bin/format", "-type", "btrfs" ]
|
||||
- name: mount
|
||||
image: linuxkit/mount:b346ec277b7074e5c9986128a879c10a1d18742b
|
||||
|
@ -6,7 +6,7 @@ init:
|
||||
- linuxkit/runc:abc3f292653e64a2fd488e9675ace19a55ec7023
|
||||
onboot:
|
||||
- name: format
|
||||
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
||||
image: linuxkit/format:5a1140cb65e733f26de727fa684fef1326e9d5ab
|
||||
command: ["/usr/bin/format", "-type", "xfs"]
|
||||
- name: mount
|
||||
image: linuxkit/mount:b346ec277b7074e5c9986128a879c10a1d18742b
|
||||
|
@ -6,7 +6,7 @@ init:
|
||||
- linuxkit/runc:abc3f292653e64a2fd488e9675ace19a55ec7023
|
||||
onboot:
|
||||
- name: format
|
||||
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
||||
image: linuxkit/format:5a1140cb65e733f26de727fa684fef1326e9d5ab
|
||||
command: ["/usr/bin/format"]
|
||||
- name: mount
|
||||
image: linuxkit/mount:b346ec277b7074e5c9986128a879c10a1d18742b
|
||||
|
@ -6,7 +6,7 @@ init:
|
||||
- linuxkit/runc:abc3f292653e64a2fd488e9675ace19a55ec7023
|
||||
onboot:
|
||||
- name: format
|
||||
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
||||
image: linuxkit/format:5a1140cb65e733f26de727fa684fef1326e9d5ab
|
||||
command: ["/usr/bin/format", "-label", "docker"]
|
||||
- name: mount
|
||||
image: linuxkit/mount:b346ec277b7074e5c9986128a879c10a1d18742b
|
||||
|
@ -6,7 +6,7 @@ init:
|
||||
- linuxkit/runc:abc3f292653e64a2fd488e9675ace19a55ec7023
|
||||
onboot:
|
||||
- name: format
|
||||
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
||||
image: linuxkit/format:5a1140cb65e733f26de727fa684fef1326e9d5ab
|
||||
command: ["/usr/bin/format", "@DEVICE@"]
|
||||
- name: mount
|
||||
image: linuxkit/mount:b346ec277b7074e5c9986128a879c10a1d18742b
|
||||
|
@ -9,7 +9,7 @@ onboot:
|
||||
image: linuxkit/modprobe:1a192d168adadec47afa860e3fc874fbc2a823ff
|
||||
command: ["modprobe", "btrfs"]
|
||||
- name: format
|
||||
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
||||
image: linuxkit/format:5a1140cb65e733f26de727fa684fef1326e9d5ab
|
||||
command: ["/usr/bin/format", "-type", "btrfs" ]
|
||||
- name: mount
|
||||
image: linuxkit/mount:b346ec277b7074e5c9986128a879c10a1d18742b
|
||||
|
@ -6,7 +6,7 @@ init:
|
||||
- linuxkit/runc:abc3f292653e64a2fd488e9675ace19a55ec7023
|
||||
onboot:
|
||||
- name: format
|
||||
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
||||
image: linuxkit/format:5a1140cb65e733f26de727fa684fef1326e9d5ab
|
||||
command: ["/usr/bin/format", "-type", "xfs" ]
|
||||
- name: mount
|
||||
image: linuxkit/mount:b346ec277b7074e5c9986128a879c10a1d18742b
|
||||
|
@ -6,19 +6,19 @@ init:
|
||||
- linuxkit/runc:abc3f292653e64a2fd488e9675ace19a55ec7023
|
||||
onboot:
|
||||
- name: format
|
||||
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
||||
image: linuxkit/format:5a1140cb65e733f26de727fa684fef1326e9d5ab
|
||||
command: ["/usr/bin/format", "-verbose", "-type", "ext4", "/dev/sda"]
|
||||
- name: format
|
||||
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
||||
image: linuxkit/format:5a1140cb65e733f26de727fa684fef1326e9d5ab
|
||||
command: ["/usr/bin/format", "-verbose", "-type", "ext4", "/dev/sdb"]
|
||||
- name: format
|
||||
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
||||
image: linuxkit/format:5a1140cb65e733f26de727fa684fef1326e9d5ab
|
||||
command: ["/usr/bin/format", "-verbose", "-type", "xfs", "/dev/sda"]
|
||||
- name: format
|
||||
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
||||
image: linuxkit/format:5a1140cb65e733f26de727fa684fef1326e9d5ab
|
||||
command: ["/usr/bin/format", "-verbose", "-force", "-type", "xfs", "/dev/sdb"]
|
||||
- name: test
|
||||
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
||||
image: linuxkit/format:5a1140cb65e733f26de727fa684fef1326e9d5ab
|
||||
binds:
|
||||
- /check.sh:/check.sh
|
||||
command: ["sh", "./check.sh"]
|
||||
|
@ -6,10 +6,10 @@ init:
|
||||
- linuxkit/runc:abc3f292653e64a2fd488e9675ace19a55ec7023
|
||||
onboot:
|
||||
- name: format
|
||||
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
||||
image: linuxkit/format:5a1140cb65e733f26de727fa684fef1326e9d5ab
|
||||
command: ["/usr/bin/format", "-label", "docker"]
|
||||
- name: format
|
||||
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
||||
image: linuxkit/format:5a1140cb65e733f26de727fa684fef1326e9d5ab
|
||||
command: ["/usr/bin/format", "-label", "foo"]
|
||||
- name: mount
|
||||
image: linuxkit/mount:b346ec277b7074e5c9986128a879c10a1d18742b
|
||||
|
Loading…
Reference in New Issue
Block a user