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:
3
scripts/dockerimages/10-autoformat
Normal file
3
scripts/dockerimages/10-autoformat
Normal file
@@ -0,0 +1,3 @@
|
||||
FROM base
|
||||
COPY scripts/dockerimages/scripts/auto-format.sh /usr/sbin/
|
||||
ENTRYPOINT ["/usr/sbin/auto-format.sh"]
|
5
scripts/dockerimages/scripts/auto-format.sh
Executable file
5
scripts/dockerimages/scripts/auto-format.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
exec mkfs.ext4 -L RANCHER_STATE $1
|
||||
fi
|
Reference in New Issue
Block a user