1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 14:23:11 +00:00

Add bootstrap phase to handle udev and auto-format

This commit is contained in:
Darren Shepherd
2015-03-18 06:21:32 -07:00
parent 0e77cde9c0
commit 91dd56e595
6 changed files with 377 additions and 221 deletions

View File

@@ -0,0 +1,3 @@
FROM base
COPY scripts/dockerimages/scripts/auto-format.sh /usr/sbin/
ENTRYPOINT ["/usr/sbin/auto-format.sh"]

View File

@@ -0,0 +1,5 @@
#!/bin/bash
if [ -n "$1" ]; then
exec mkfs.ext4 -L RANCHER_STATE $1
fi