添加ostree启动时,initrd添加临时目录

This commit is contained in:
liushanwen 2023-12-03 17:53:26 +08:00
parent 05be185e94
commit 3180c57b94
2 changed files with 7 additions and 0 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
initramfs-tools (0.142kylin13.1.4) nile; urgency=medium
* 修改init脚本添加OSTREEBOOT启动参数,添加tmproot临时目录
-- liushanwen <liushanwen@kylinos.cn> Sun, 03 Dec 2023 17:51:52 +0800
initramfs-tools (0.142kylin13.1.3) nile; urgency=medium
* 修改init脚本添加OSTREEBOOT启动参数

1
init
View File

@ -13,6 +13,7 @@ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[ -d /sys ] || mkdir /sys
[ -d /proc ] || mkdir /proc
[ -d /tmp ] || mkdir /tmp
[ -d /tmproot ] || mkdir /tmproot
mkdir -p /var/lock
mount -t sysfs -o nodev,noexec,nosuid sysfs /sys
mount -t proc -o nodev,noexec,nosuid proc /proc