diff --git a/README.en.md b/README.en.md index 33a23d90e32135091fbf490013a73a8ba7bd7136..407364ef5cd56428990ca378fb99db03b6f798e1 100644 --- a/README.en.md +++ b/README.en.md @@ -54,29 +54,29 @@ Basic information of the image is as follows:

Repository of rootfs

-openEuler 20.03 LTS alpha3 +openEuler 20.03 LTS alpha4 ChangeLog -

2020/12/29

+

2021/01/06

217 MiB

4.19.90-2012.5.0

openEuler 20.03 LTS repository built daily -openEuler 20.09 alpha3 +openEuler 20.09 alpha4 ChangeLog -

2020/12/29

-

242 MiB

+

2021/01/06

+

243 MiB

4.19.140-2012.2.0.0006

openEuler 20.09 repository built daily -openEuler 20.09 alpha4 (with Xfce desktop environment) +openEuler 20.09 alpha5 (with Xfce desktop environment) ChangeLog -

2020/12/31

-

923 MiB

+

2021/01/06

+

922 MiB

4.19.138-2008.1.0.0001

openEuler 20.09 repository @@ -90,30 +90,30 @@ Basic information of the image is as follows: openEuler 20.09 repository -openEuler 20.03 LTS SP1 alpha1 +openEuler 20.03 LTS SP1 alpha2 ChangeLog -

2020/12/29

-

238 MiB

-

4.19.90-2012.3.0.0011

+

2021/01/06

+

239 MiB

+

4.19.90-2012.5.0.0013

openEuler 20.03 LTS SP1 repository built daily -openEuler 20.03 LTS SP1 alpha1 (with UKUI desktop environment) +openEuler 20.03 LTS SP1 alpha2 (with UKUI desktop environment) ChangeLog -

2020/12/29

+

2021/01/06

1.0 GiB

-

4.19.90-2012.3.0.0011

+

4.19.90-2012.5.0.0013

openEuler 20.03 LTS SP1 repository built daily -openEuler 20.03 LTS SP1 alpha1 (with DDE desktop environment) +openEuler 20.03 LTS SP1 alpha2 (with DDE desktop environment) ChangeLog -

2020/12/29

+

2021/01/06

1.0 GiB

-

4.19.90-2012.3.0.0011

+

4.19.90-2012.5.0.0013

openEuler 20.03 LTS SP1 repository built daily diff --git a/README.md b/README.md index 68d206a07bc28c5beb072b697ad1cef9d4661303..f05035953991ad105920aae9271a988ef3013390 100644 --- a/README.md +++ b/README.md @@ -53,29 +53,29 @@ SIG 组基本信息位于 [sig-RaspberryPi](https://gitee.com/jianminw/community

构建文件系统的源仓库

-openEuler 20.03 LTS 内测版 +openEuler 20.03 LTS 内测版 更新日志 -

2020/12/29

+

2021/01/06

217 MiB

4.19.90-2012.5.0

openEuler 20.03 LTS 每日构建的源仓库 -openEuler 20.09 内测版 +openEuler 20.09 内测版 更新日志 -

2020/12/29

-

242 MiB

+

2021/01/06

+

243 MiB

4.19.140-2012.2.0.0006

openEuler 20.09 每日构建源仓库 -openEuler 20.09 内测版(包含 Xfce 桌面环境) +openEuler 20.09 内测版(包含 Xfce 桌面环境) 更新日志 -

2020/12/31

-

923 MiB

+

2021/01/06

+

922 MiB

4.19.138-2008.1.0.0001

openEuler 20.09 源仓库 @@ -89,30 +89,30 @@ SIG 组基本信息位于 [sig-RaspberryPi](https://gitee.com/jianminw/community openEuler 20.09 源仓库 -openEuler 20.03 LTS SP1 内测版 +openEuler 20.03 LTS SP1 内测版 更新日志 -

2020/12/29

-

238 MiB

-

4.19.90-2012.3.0.0011

+

2021/01/06

+

239 MiB

+

4.19.90-2012.5.0.0013

openEuler 20.03 LTS SP1 每日构建源仓库 -openEuler 20.03 LTS SP1 内测版(包含 UKUI 桌面环境) +openEuler 20.03 LTS SP1 内测版(包含 UKUI 桌面环境) 更新日志 -

2020/12/29

+

2021/01/06

1.0 GiB

-

4.19.90-2012.3.0.0011

+

4.19.90-2012.5.0.0013

openEuler 20.03 LTS SP1 每日构建源仓库 -openEuler 20.03 LTS SP1 内测版(包含 DDE 桌面环境) +openEuler 20.03 LTS SP1 内测版(包含 DDE 桌面环境) 更新日志 -

2020/12/29

+

2021/01/06

1.0 GiB

-

4.19.90-2012.3.0.0011

+

4.19.90-2012.5.0.0013

openEuler 20.03 LTS SP1 每日构建源仓库 diff --git a/documents/changelog/changelog-20.03-LTS-SP1-DDE.en.md b/documents/changelog/changelog-20.03-LTS-SP1-DDE.en.md index 3c28f4d31c1123c76b6bf4997da6e23a6b8e2e0a..1905ac81a4886ef8a806e69c5db5a10c25a3ea29 100644 --- a/documents/changelog/changelog-20.03-LTS-SP1-DDE.en.md +++ b/documents/changelog/changelog-20.03-LTS-SP1-DDE.en.md @@ -2,6 +2,28 @@ English | [简体中文](./changelog-20.03-LTS-SP1-DDE.md) +### 2021-01-06 + +#### Basic information + +- Release date: 2021/01/06 +- Size: 1.0 GiB +- OS version: openEuler 20.03 LTS SP1 +- Kernel version: 4.19.90-2012.5.0.0013 +- Firmware source: [firmware](https://github.com/raspberrypi/firmware), [bluez-firmware](https://github.com/RPi-Distro/bluez-firmware), [firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- Repository of rootfs: [openEuler 20.03 LTS SP1 repository built daily](http://119.3.219.20:82/openEuler:/20.03:/LTS:/SP1/standard_aarch64/aarch64/) +- Repository inside the image: [openEuler 20.03 LTS SP1 repository](https://gitee.com/src-openeuler/openEuler-repos/blob/openEuler-20.03-LTS-SP1/generic.repo) + +#### Updates + +##### Kernel + +Update to the latest stable version of openEuler: 4.19.90-2012.5.0. + +##### Feature update + +Extend the root partition automatically on boot. + ### 2020-12-29 #### Basic information diff --git a/documents/changelog/changelog-20.03-LTS-SP1-DDE.md b/documents/changelog/changelog-20.03-LTS-SP1-DDE.md index 2f7a2ca332a9b97c8f2dd08a2ea293ef8ee01679..55218d87437d66c6203c8a5d6b78991bcf7e2184 100644 --- a/documents/changelog/changelog-20.03-LTS-SP1-DDE.md +++ b/documents/changelog/changelog-20.03-LTS-SP1-DDE.md @@ -2,6 +2,28 @@ [English](./changelog-20.03-LTS-SP1-DDE.en.md) | 简体中文 +### 2021-01-06 + +#### 基本信息 + +- 发布时间:2021/01/06 +- 大小:1.0 GiB +- 操作系统版本:openEuler 20.03 LTS SP1 +- 内核版本:4.19.90-2012.5.0.0013 +- 固件来源:[firmware](https://github.com/raspberrypi/firmware)、[bluez-firmware](https://github.com/RPi-Distro/bluez-firmware)、[firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- 构建文件系统的源仓库:[openEuler 20.03 LTS SP1 每日构建的源仓库](http://119.3.219.20:82/openEuler:/20.03:/LTS:/SP1/standard_aarch64/aarch64/) +- 镜像内置源仓库:[openEuler 20.03 LTS SP1 源仓库](https://gitee.com/src-openeuler/openEuler-repos/blob/openEuler-20.03-LTS-SP1/generic.repo) + +#### 更新说明 + +##### 内核 + +更新到 openEuler 最新稳定版本 4.19.90-2012.5.0。 + +##### 功能改动 + +开机自动扩展根分区。 + ### 2020-12-29 #### 基本信息 diff --git a/documents/changelog/changelog-20.03-LTS-SP1-UKUI.en.md b/documents/changelog/changelog-20.03-LTS-SP1-UKUI.en.md index 5e9cb894d1aee135bacdace3f144714735887707..0f6a41659b9cb38a613e953c9f3757583dc9d6df 100644 --- a/documents/changelog/changelog-20.03-LTS-SP1-UKUI.en.md +++ b/documents/changelog/changelog-20.03-LTS-SP1-UKUI.en.md @@ -2,6 +2,28 @@ English | [简体中文](./changelog-20.03-LTS-SP1-UKUI.md) +### 2021-01-06 + +#### Basic information + +- Release date: 2021/01/06 +- Size: 1.0 GiB +- OS version: openEuler 20.03 LTS SP1 +- Kernel version: 4.19.90-2012.5.0.0013 +- Firmware source: [firmware](https://github.com/raspberrypi/firmware), [bluez-firmware](https://github.com/RPi-Distro/bluez-firmware), [firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- Repository of rootfs: [openEuler 20.03 LTS SP1 repository built daily](http://119.3.219.20:82/openEuler:/20.03:/LTS:/SP1/standard_aarch64/aarch64/) +- Repository inside the image: [openEuler 20.03 LTS SP1 repository](https://gitee.com/src-openeuler/openEuler-repos/blob/openEuler-20.03-LTS-SP1/generic.repo) + +#### Updates + +##### Kernel + +Update to the latest stable version of openEuler: 4.19.90-2012.5.0. + +##### Feature update + +Extend the root partition automatically on boot. + ### 2020-12-29 #### Basic information diff --git a/documents/changelog/changelog-20.03-LTS-SP1-UKUI.md b/documents/changelog/changelog-20.03-LTS-SP1-UKUI.md index 78d63eacdfb388409d17c8d8bade413538f9d0af..42298cc42b952bb1c72c901bc382666d2950957f 100644 --- a/documents/changelog/changelog-20.03-LTS-SP1-UKUI.md +++ b/documents/changelog/changelog-20.03-LTS-SP1-UKUI.md @@ -2,6 +2,28 @@ [English](./changelog-20.03-LTS-SP1-UKUI.en.md) | 简体中文 +### 2021-01-06 + +#### 基本信息 + +- 发布时间:2021/01/06 +- 大小:1.0 GiB +- 操作系统版本:openEuler 20.03 LTS SP1 +- 内核版本:4.19.90-2012.5.0.0013 +- 固件来源:[firmware](https://github.com/raspberrypi/firmware)、[bluez-firmware](https://github.com/RPi-Distro/bluez-firmware)、[firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- 构建文件系统的源仓库:[openEuler 20.03 LTS SP1 每日构建的源仓库](http://119.3.219.20:82/openEuler:/20.03:/LTS:/SP1/standard_aarch64/aarch64/) +- 镜像内置源仓库:[openEuler 20.03 LTS SP1 源仓库](https://gitee.com/src-openeuler/openEuler-repos/blob/openEuler-20.03-LTS-SP1/generic.repo) + +#### 更新说明 + +##### 内核 + +更新到 openEuler 最新稳定版本 4.19.90-2012.5.0。 + +##### 功能改动 + +开机自动扩展根分区。 + ### 2020-12-29 #### 基本信息 diff --git a/documents/changelog/changelog-20.03-LTS-SP1.en.md b/documents/changelog/changelog-20.03-LTS-SP1.en.md index 8215bee4e9ca09f355247c6b4d3494cf2c71a707..0588c64f4802bf4c73c24dd1febf06a2df427e0e 100644 --- a/documents/changelog/changelog-20.03-LTS-SP1.en.md +++ b/documents/changelog/changelog-20.03-LTS-SP1.en.md @@ -2,6 +2,28 @@ English | [简体中文](./changelog-20.03-LTS-SP1.md) +### 2021-01-06 + +#### Basic information + +- Release date: 2021/01/06 +- Size: 239 MiB +- OS version: openEuler 20.03 LTS SP1 +- Kernel version: 4.19.90-2012.5.0.0013 +- Firmware source: [firmware](https://github.com/raspberrypi/firmware), [bluez-firmware](https://github.com/RPi-Distro/bluez-firmware), [firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- Repository of rootfs: [openEuler 20.03 LTS SP1 repository built daily](http://119.3.219.20:82/openEuler:/20.03:/LTS:/SP1/standard_aarch64/aarch64/) +- Repository inside the image: [openEuler 20.03 LTS SP1 repository](https://gitee.com/src-openeuler/openEuler-repos/blob/openEuler-20.03-LTS-SP1/generic.repo) + +#### Updates + +##### Kernel + +Update to the latest stable version of openEuler: 4.19.90-2012.5.0. + +##### Feature update + +Extend the root partition automatically on boot. + ### 2020-12-29 #### Basic information diff --git a/documents/changelog/changelog-20.03-LTS-SP1.md b/documents/changelog/changelog-20.03-LTS-SP1.md index 4b1c96924e298520ae8ee08eba91beb7b55a6136..343c73c7c0075438b5c6e44f3def2a57db22f883 100644 --- a/documents/changelog/changelog-20.03-LTS-SP1.md +++ b/documents/changelog/changelog-20.03-LTS-SP1.md @@ -2,6 +2,28 @@ [English](./changelog-20.03-LTS-SP1.en.md) | 简体中文 +### 2021-01-06 + +#### 基本信息 + +- 发布时间:2021/01/06 +- 大小:239 MiB +- 操作系统版本:openEuler 20.03 LTS SP1 +- 内核版本:4.19.90-2012.5.0.0013 +- 固件来源:[firmware](https://github.com/raspberrypi/firmware)、[bluez-firmware](https://github.com/RPi-Distro/bluez-firmware)、[firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- 构建文件系统的源仓库:[openEuler 20.03 LTS SP1 每日构建的源仓库](http://119.3.219.20:82/openEuler:/20.03:/LTS:/SP1/standard_aarch64/aarch64/) +- 镜像内置源仓库:[openEuler 20.03 LTS SP1 源仓库](https://gitee.com/src-openeuler/openEuler-repos/blob/openEuler-20.03-LTS-SP1/generic.repo) + +#### 更新说明 + +##### 内核 + +更新到 openEuler 最新稳定版本 4.19.90-2012.5.0。 + +##### 功能改动 + +开机自动扩展根分区。 + ### 2020-12-29 #### 基本信息 diff --git a/documents/changelog/changelog-20.03-LTS.en.md b/documents/changelog/changelog-20.03-LTS.en.md index d9cbb1eb7073cff9a1dc745ce1b83967f12ffe56..60e37b9c254ca569e19f9c3b0aeb050eb53e61fd 100644 --- a/documents/changelog/changelog-20.03-LTS.en.md +++ b/documents/changelog/changelog-20.03-LTS.en.md @@ -2,6 +2,24 @@ English | [简体中文](./changelog-20.03-LTS.md) +### 2021-01-06 + +#### Basic information + +- Release date: 2021/01/06 +- Size: 217 MiB +- OS version: openEuler 20.03 LTS +- Kernel version: 4.19.90-2012.5.0 +- Firmware source: [firmware](https://github.com/raspberrypi/firmware), [bluez-firmware](https://github.com/RPi-Distro/bluez-firmware), [firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- Repository of rootfs: [openEuler 20.03 LTS repository built daily](http://119.3.219.20:82/openEuler:/20.03:/LTS/standard_aarch64/aarch64/) +- Repository inside the image: [openEuler 20.03 LTS repository](https://gitee.com/src-openeuler/openEuler-repos/blob/openEuler-20.03-LTS/generic.repo) + +#### Updates + +##### Feature update + +Extend the root partition automatically on boot. + ### 2020-12-29 #### Basic information diff --git a/documents/changelog/changelog-20.03-LTS.md b/documents/changelog/changelog-20.03-LTS.md index 3902b845427cc0c8f3628cf20037142be835c7ba..ee6ca471aade2e74a2fb86e05e23b03f6f85f221 100644 --- a/documents/changelog/changelog-20.03-LTS.md +++ b/documents/changelog/changelog-20.03-LTS.md @@ -2,6 +2,24 @@ [English](./changelog-20.03-LTS.en.md) | 简体中文 +### 2021-01-06 + +#### 基本信息 + +- 发布时间:2021/01/06 +- 大小:217 MiB +- 操作系统版本:openEuler 20.03 LTS +- 内核版本:4.19.90-2012.5.0 +- 固件来源:[firmware](https://github.com/raspberrypi/firmware)、[bluez-firmware](https://github.com/RPi-Distro/bluez-firmware)、[firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- 构建文件系统的源仓库:[openEuler 20.03 LTS 每日构建的源仓库](http://119.3.219.20:82/openEuler:/20.03:/LTS/standard_aarch64/aarch64/) +- 镜像内置源仓库:[openEuler 20.03 LTS 源仓库](https://gitee.com/src-openeuler/openEuler-repos/blob/openEuler-20.03-LTS/generic.repo) + +#### 更新说明 + +##### 功能改动 + +开机自动扩展根分区。 + ### 2020-12-29 #### 基本信息 diff --git a/documents/changelog/changelog-20.09-Xfce.en.md b/documents/changelog/changelog-20.09-Xfce.en.md index 3b353eedc62e7bd1ba044a5fca0b16ea58eb9e59..357c3267c0c7e08daabd7ddb95c6342bd04b9eee 100644 --- a/documents/changelog/changelog-20.09-Xfce.en.md +++ b/documents/changelog/changelog-20.09-Xfce.en.md @@ -2,6 +2,24 @@ English | [简体中文](./changelog-20.09-Xfce.md) +### 2021-01-06 + +#### Basic information + +- Release date: 2021/01/06 +- Size: 922 MiB +- OS version: openEuler 20.09 +- Kernel version: 4.19.138-2008.1.0.0001 +- Firmware source: [firmware](https://github.com/raspberrypi/firmware), [bluez-firmware](https://github.com/RPi-Distro/bluez-firmware), [firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- Repository of rootfs: [openEuler 20.09 repository](https://repo.openeuler.org/openEuler-20.09/) +- Repository inside the image: [openEuler 20.09 repository](https://repo.openeuler.org/openEuler-20.09/) + +#### Updates + +##### Feature update + +Extend the root partition automatically on boot. + ### 2020-12-31 #### Basic information @@ -18,7 +36,7 @@ English | [简体中文](./changelog-20.09-Xfce.md) ##### Feature update -- Install xfce4-screensaver, which enables the screen lock feature. +Install xfce4-screensaver, which enables the screen lock feature. ### 2020-12-29 diff --git a/documents/changelog/changelog-20.09-Xfce.md b/documents/changelog/changelog-20.09-Xfce.md index 78f975b806a28b69cdaefb5a867755b01004bf42..056fadf975a2fc25cedfdf51c8fa3ac2f4c291ce 100644 --- a/documents/changelog/changelog-20.09-Xfce.md +++ b/documents/changelog/changelog-20.09-Xfce.md @@ -2,6 +2,24 @@ [English](./changelog-20.09-Xfce.en.md) | 简体中文 +### 2021-01-06 + +#### 基本信息 + +- 发布时间:2021/01/06 +- 大小:922 MiB +- 操作系统版本:openEuler 20.09 +- 内核版本:4.19.138-2008.1.0.0001 +- 固件来源:[firmware](https://github.com/raspberrypi/firmware)、[bluez-firmware](https://github.com/RPi-Distro/bluez-firmware)、[firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- 构建文件系统的源仓库:[openEuler 20.09 源仓库](https://repo.openeuler.org/openEuler-20.09/) +- 镜像内置源仓库:[openEuler 20.09 源仓库](https://repo.openeuler.org/openEuler-20.09/) + +#### 更新说明 + +##### 功能改动 + +开机自动扩展根分区。 + ### 2020-12-31 #### 基本信息 @@ -18,7 +36,7 @@ ##### 功能改动 -- 安装 xfce4-screensaver,添加锁屏功能。 +安装 xfce4-screensaver,添加锁屏功能。 ### 2020-12-29 diff --git a/documents/changelog/changelog-20.09.en.md b/documents/changelog/changelog-20.09.en.md index ac8afd08f44351e8ffb1dda16f708e2847d36341..6e6205d81d693f1ee8fddb76b743f8d3dc1c5305 100644 --- a/documents/changelog/changelog-20.09.en.md +++ b/documents/changelog/changelog-20.09.en.md @@ -2,6 +2,24 @@ English | [简体中文](./changelog-20.09.md) +### 2021-01-06 + +#### Basic information + +- Release date: 2021/01/06 +- Size: 243 MiB +- OS version: openEuler 20.09 +- Kernel version: 4.19.140-2012.2.0.0006 +- Firmware source: [firmware](https://github.com/raspberrypi/firmware), [bluez-firmware](https://github.com/RPi-Distro/bluez-firmware), [firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- Repository of rootfs: [openEuler 20.09 repository built daily](https://gitee.com/src-openeuler/openEuler-repos/blob/openEuler-20.09/generic.repo) +- Repository inside the image: [openEuler 20.09 repository](http://repo.openeuler.org/openEuler-20.09/) + +#### Updates + +##### Feature update + +Extend the root partition automatically on boot. + ### 2020-12-29 #### Basic information diff --git a/documents/changelog/changelog-20.09.md b/documents/changelog/changelog-20.09.md index 0275e97aa609062ab0038f32f633b6a2ac062b0d..2b531f5388119979e2adb5f97f5f4a2d7a374621 100644 --- a/documents/changelog/changelog-20.09.md +++ b/documents/changelog/changelog-20.09.md @@ -2,6 +2,24 @@ [English](./changelog-20.09.en.md) | 简体中文 +### 2021-01-06 + +#### 基本信息 + +- 发布时间:2021/01/06 +- 大小:243 MiB +- 操作系统版本:openEuler 20.09 +- 内核版本:4.19.140-2012.2.0.0006 +- 固件来源:[firmware](https://github.com/raspberrypi/firmware)、[bluez-firmware](https://github.com/RPi-Distro/bluez-firmware)、[firmware-nonfree](https://github.com/RPi-Distro/firmware-nonfree) +- 构建文件系统的源仓库:[openEuler 20.09 每日构建的源仓库](https://gitee.com/src-openeuler/openEuler-repos/blob/openEuler-20.09/generic.repo) +- 镜像内置源仓库:[openEuler 20.09 源仓库](http://repo.openeuler.org/openEuler-20.09/) + +#### 更新说明 + +##### 功能改动 + +开机自动扩展根分区。 + ### 2020-12-29 #### 基本信息 diff --git a/scripts/build-image-common.sh b/scripts/build-image-common.sh index f75bcd5b5814fbe284fcfdcf62455f95f68f926c..818d8b696750d33fec4de63fab1120b614345c43 100644 --- a/scripts/build-image-common.sh +++ b/scripts/build-image-common.sh @@ -485,6 +485,10 @@ make_rootfs(){ mkdir -p ${rootfs_dir}/usr/share/licenses/raspi cp ${euler_dir}/License/* ${rootfs_dir}/usr/share/licenses/raspi/ cp ${euler_dir}/chroot.sh ${rootfs_dir}/chroot.sh + if [ ! -d ${rootfs_dir}/etc/rc.d/init.d ]; then + mkdir -p ${rootfs_dir}/etc/rc.d/init.d + fi + cp ${euler_dir}/extend-root.sh ${rootfs_dir}/etc/rc.d/init.d/extend-root.sh chmod +x ${rootfs_dir}/chroot.sh mount --bind /dev ${rootfs_dir}/dev mount -t proc /proc ${rootfs_dir}/proc diff --git a/scripts/build-image.sh b/scripts/build-image.sh index 8c03560bc57a983a859dc546fdbd53e9d1a0b86c..1447099626d73ab07037d3d6d4d5bdc3a0d2a6a1 100644 --- a/scripts/build-image.sh +++ b/scripts/build-image.sh @@ -265,6 +265,10 @@ make_rootfs(){ cp ${euler_dir}/*.rules ${rootfs_dir}/lib/udev/rules.d/ cp ${euler_dir}/LICENCE.* ${rootfs_dir}/usr/share/licenses/raspi/ cp ${euler_dir}/chroot.sh ${rootfs_dir}/chroot.sh + if [ ! -d ${rootfs_dir}/etc/rc.d/init.d ]; then + mkdir -p ${rootfs_dir}/etc/rc.d/init.d + fi + cp ${euler_dir}/extend-root.sh ${rootfs_dir}/etc/rc.d/init.d/extend-root.sh chmod +x ${rootfs_dir}/chroot.sh mount --bind /dev ${rootfs_dir}/dev mount -t proc /proc ${rootfs_dir}/proc diff --git a/scripts/config-common/extend-root.sh b/scripts/config-common/extend-root.sh new file mode 120000 index 0000000000000000000000000000000000000000..c2b264b79e48ad59dd200d227ab2e36f8f48467d --- /dev/null +++ b/scripts/config-common/extend-root.sh @@ -0,0 +1 @@ +../config/extend-root.sh \ No newline at end of file diff --git a/scripts/config-common/rpmlist b/scripts/config-common/rpmlist index e7285ba840872f0de2f73ce59fc59a3e78b2c713..612d60d8300109e3fe99ca9e47425205f4626377 100644 --- a/scripts/config-common/rpmlist +++ b/scripts/config-common/rpmlist @@ -8,9 +8,11 @@ iproute iputils NetworkManager openssh-server +openssh-clients passwd hostname bluez pulseaudio-module-bluetooth +parted sudo openEuler-repos diff --git a/scripts/config-common/rpmlist-dde b/scripts/config-common/rpmlist-dde index 81a48cd2dc9f53b4cd62a073a9afdc2a8483f831..fe52bfd490d5f54a0be7042b6e432bcae4f2f123 100644 --- a/scripts/config-common/rpmlist-dde +++ b/scripts/config-common/rpmlist-dde @@ -8,10 +8,12 @@ iproute iputils NetworkManager openssh-server +openssh-clients passwd hostname bluez pulseaudio-module-bluetooth +parted sudo dde openEuler-repos diff --git a/scripts/config-common/rpmlist-ukui b/scripts/config-common/rpmlist-ukui index de9a8b6d64508b71f5d3708ab2acde2156f055cc..60900777d2173cd5205006d8023399281f1e0db2 100644 --- a/scripts/config-common/rpmlist-ukui +++ b/scripts/config-common/rpmlist-ukui @@ -8,10 +8,12 @@ iproute iputils NetworkManager openssh-server +openssh-clients passwd hostname bluez pulseaudio-module-bluetooth +parted sudo ukui firefox diff --git a/scripts/config-common/rpmlist-xfce b/scripts/config-common/rpmlist-xfce index 950f2279ee8408191bbba04eb4bc9611da08a1bd..ce1e85e0eae795b266e35dd7b51bcb9feb708208 100644 --- a/scripts/config-common/rpmlist-xfce +++ b/scripts/config-common/rpmlist-xfce @@ -8,10 +8,12 @@ iproute iputils NetworkManager openssh-server +openssh-clients passwd hostname bluez pulseaudio-module-bluetooth +parted sudo mesa-dri-drivers xorg-x11-drv-fbdev diff --git a/scripts/config/chroot.sh b/scripts/config/chroot.sh index 3e5360cd716bb18a6f0501d1c989197e5de9ca7a..e3cdd63f7b6459be8c1486919d8f65a1a7eeb87b 100755 --- a/scripts/config/chroot.sh +++ b/scripts/config/chroot.sh @@ -24,4 +24,9 @@ elif [ "x$1" == "xdde" ]; then if id openeuler; then userdel -r openeuler fi -fi \ No newline at end of file +fi +cd /etc/rc.d/init.d +chmod +x extend-root.sh +chkconfig --add extend-root.sh +chkconfig extend-root.sh on +cd - \ No newline at end of file diff --git a/scripts/config/extend-root.sh b/scripts/config/extend-root.sh new file mode 100755 index 0000000000000000000000000000000000000000..1e23a3eb6ce2e2ae88aa6d1a9e35ad45b81506e3 --- /dev/null +++ b/scripts/config/extend-root.sh @@ -0,0 +1,49 @@ +#!/bin/bash +# chkconfig: - 99 10 +# description: extend root + +set -e + +extend_root(){ + ROOT_PART="$(findmnt / -o source -n)" # /dev/mmcblk0p3 + ROOT_DEV="/dev/$(lsblk -no pkname "$ROOT_PART")" # /dev/mmcblk0 + PART_NUM="$(echo "$ROOT_PART" | grep -o "[[:digit:]]*$")" # 3 + + PART_INFO=$(parted "$ROOT_DEV" -ms unit s p) + # BYT; + # /dev/mmcblk0:31116288s:sd/mmc:512:512:msdos:SD SC16G:; + # 1:8192s:593919s:585728s:fat16::boot, lba; + # 2:593920s:1593343s:999424s:linux-swap(v1)::; + # 3:1593344s:31116287s:29522944s:ext4::; + LAST_PART_NUM=$(echo "$PART_INFO" | tail -n 1 | cut -f 1 -d:) # 3 + PART_START=$(echo "$PART_INFO" | grep "^${PART_NUM}" | cut -f 2 -d: | sed 's/[^0-9]//g') # 1593344 + PART_END=$(echo "$PART_INFO" | grep "^${PART_NUM}" | cut -f 3 -d: | sed 's/[^0-9]//g') # XXXX < 31116288 + ROOT_END=$(echo "$PART_INFO" | grep "^/dev"| cut -f 2 -d: | sed 's/[^0-9]//g') # 31116288 + ((ROOT_END--)) # 31116287 + + if [ $PART_END -lt $ROOT_END ]; then + fdisk "$ROOT_DEV" <> /var/log/extend-root.log + else + echo "Already the largest! Do not need extend any more!" >> /var/log/extend-root.log + fi + return 0 +} + +if extend_root; then + rm -f /etc/rc.d/init.d/extend-root.sh +else + echo "Fail to root!" >> /var/log/extend-root.log +fi diff --git a/scripts/config/rpmlist b/scripts/config/rpmlist index 02d20b433251725c308f9d669631dce5c8f0707a..335d9096a2cc902494afae6a1ffbb65fb3c8145b 100644 --- a/scripts/config/rpmlist +++ b/scripts/config/rpmlist @@ -8,10 +8,12 @@ iproute iputils NetworkManager openssh-server +openssh-clients passwd hostname bluez pulseaudio-module-bluetooth +parted raspberrypi-kernel raspberrypi-firmware raspberrypi-bluetooth diff --git a/scripts/config/rpmlist-dde b/scripts/config/rpmlist-dde index be3544485aabd2aad6e1834f9658bc5d02ca980a..7281705223de9d489041ed1508366c5099f4c5ce 100644 --- a/scripts/config/rpmlist-dde +++ b/scripts/config/rpmlist-dde @@ -8,10 +8,12 @@ iproute iputils NetworkManager openssh-server +openssh-clients passwd hostname bluez pulseaudio-module-bluetooth +parted raspberrypi-kernel raspberrypi-firmware raspberrypi-bluetooth diff --git a/scripts/config/rpmlist-ukui b/scripts/config/rpmlist-ukui index ec38b6290d031b4fab7f4cbb8fe58ea73e349060..bad65b583a94cd9b4c0025d95c3f6e07189097b7 100644 --- a/scripts/config/rpmlist-ukui +++ b/scripts/config/rpmlist-ukui @@ -8,10 +8,12 @@ iproute iputils NetworkManager openssh-server +openssh-clients passwd hostname bluez pulseaudio-module-bluetooth +parted raspberrypi-kernel raspberrypi-firmware raspberrypi-bluetooth diff --git a/scripts/config/rpmlist-xfce b/scripts/config/rpmlist-xfce index 340ffc02d6f22dfecc5b082fd9df1cea1a7941f7..4884937db625305c5146423a94b5a58837cc93eb 100644 --- a/scripts/config/rpmlist-xfce +++ b/scripts/config/rpmlist-xfce @@ -8,10 +8,12 @@ iproute iputils NetworkManager openssh-server +openssh-clients passwd hostname bluez pulseaudio-module-bluetooth +parted raspberrypi-kernel raspberrypi-firmware raspberrypi-bluetooth