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

Support for built-in custom console

This commit is contained in:
niusmallnan
2018-12-18 16:47:42 +08:00
committed by niusmallnan
parent 937b112041
commit d994816c3d
3 changed files with 21 additions and 1 deletions

View File

@@ -60,6 +60,23 @@ for file in $(ls .make-*); do
;;
esac
done
case ${OS_CONSOLE} in
"alpine")
cache_services "a/alpine.yml"
;;
"centos")
cache_services "c/centos.yml"
;;
"debian")
cache_services "d/debian.yml"
;;
"fedora")
cache_services "f/fedora.yml"
;;
"ubuntu")
cache_services "u/ubuntu.yml"
;;
esac
# TODO: usr/lib dir is overwritten by the kernel modules and firmware
ln -s ${INITRD_DIR}/usr/share/ros/os-release ${INITRD_DIR}/usr/lib/