Skip to content

Fix zram kernel module support on ubuntu#104

Merged
imlk0 merged 2 commits into
masterfrom
fix-zram
Apr 15, 2026
Merged

Fix zram kernel module support on ubuntu#104
imlk0 merged 2 commits into
masterfrom
fix-zram

Conversation

@imlk0
Copy link
Copy Markdown
Collaborator

@imlk0 imlk0 commented Apr 15, 2026

No description provided.

imlk0 added 2 commits April 15, 2026 18:49
Add zram and dm-snapshot modules to the initramfs module setup.
These are necessary for delta_backend = "dm-snapshot" functionality.

Signed-off-by: Kun Lai <klai@amazon.com>
- Add install_zram_module_if_needed function to install linux-modules-extra for Ubuntu
- Implement proper package version detection and installation
- Add space expansion using growpart before package installation to prevent 'No space left on device' errors
- Align DEB installer logic with RPM installer for consistency
- Improve error handling and logging for module installation

Fixes space constraint issues when installing kernel modules on Ubuntu cloud images,
which caused 'pigz: abort: write error on <stdout> (No space left on device)' errors.

Signed-off-by: Kun Lai <klai@amazon.com>
@shankailun-aliyun
Copy link
Copy Markdown

@imlk0 ,您好,您的请求已接收,请耐心等待结果。

@shankailun-aliyun
Copy link
Copy Markdown

@imlk0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start

@imlk0 imlk0 merged commit 4a78a04 into master Apr 15, 2026
27 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants