mirror of
https://github.com/rancher/os.git
synced 2025-08-31 22:32:14 +00:00
move chunks of shell from Makefile into scripts
This commit is contained in:
11
scripts/mk-initrd.sh
Executable file
11
scripts/mk-initrd.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
cd $(dirname $0)/..
|
||||
. scripts/build-common
|
||||
|
||||
mv ${BUILD}/kernel/lib ${INITRD_DIR}
|
||||
mv assets/docker ${INITRD_DIR}
|
||||
cp os-config.yml ${INITRD_DIR}
|
||||
cp bin/rancheros ${INITRD_DIR}/init
|
||||
cd ${INITRD_DIR} && find | cpio -H newc -o | lzma -c > ${DIST}/artifacts/initrd
|
Reference in New Issue
Block a user