8 Star 10 Fork 2

anolis/KBuilder

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
create-initrd-ramos-from-cur-os.conf 869 Bytes
一键复制 编辑 原始数据 按行查看 历史
#! /bin/bash
RESULT_DIR="initrd_result"
#if adapting to other cores, change to your version
#example: "4.18.0-240.el8.x86_64"
KERNEL_VERSION=`uname -r`
#all kernel drivers that should be included or should not be included, split with a space
#example: "module1 module2"
ADD_DRIVERS=""
OMIT_DRIVERS=""
#all excutable programs that should be installed, split with a space,
#example: "strace fsck.ext3 ssh"
INSTALL_PROG=""
# INCLUDE_FILE_DIRECTORY1="src_path dst_path"
# 1 file or directory should be copy from 'src_path' at current os filesystem to 'dst_path' at initrd's file system
# for multi-files, multiple INCLUDE_FILE_DIRECTORY* are needed
# example: "./my.conf /etc/my2.conf" or "./mydir /etc/mydir2"
INCLUDE_FILE_DIRECTORY1=""
#INCLUDE_FILE_DIRECTORY2=""
#set a cmd to execute when the system starts
#Example: echo 123 >> /var/log/syslog3
PRODUCT_CMD=""
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/anolis/kbuilder.git
git@gitee.com:anolis/kbuilder.git
anolis
kbuilder
KBuilder
master

搜索帮助