File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 uses : actions/checkout@v4
2525
2626 - name : run build
27- run : sudo DEBUG=1 ./build_complete.sh ${{ matrix.board }} quiet=1
27+ run : sudo DEBUG=1 ./build_complete.sh ${{ matrix.board }} compress_img=1 quiet=1
2828
2929 - name : upload img
3030 uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ Driver support depends on the device you are using shimboot on. The `patch_rootf
4747
4848This table is incomplete. If you want to contribute a device compatibility report please create a new issue on the Github repository.
4949
50+ On all devices, expect the following features to work:
51+ - Zram (compressed memory)
52+ - Disk compression with squashfs
53+
5054On all devices, the following features will not work:
5155- Suspend (disabled by the kernel)
5256- Swap (disabled by the kernel)
@@ -67,7 +71,8 @@ PRs and contributions are welcome to help implement these features.
6771
6872### Prerequisites:
6973- A separate Linux PC for the build process (preferably something Debian-based)
70- - A USB that is at least 8GB in size
74+ - WSL2 is supported if you are on Windows
75+ - A USB drive that is at least 8GB in size
7176- At least 20GB of free disk space
7277- An x86-based Chromebook
7378
Original file line number Diff line number Diff line change 22
33# patch the target rootfs to add any needed drivers
44
5- set -e
6- if [ " $DEBUG " ]; then
7- set -x
8- fi
9-
105. ./common.sh
116. ./image_utils.sh
127
@@ -18,11 +13,6 @@ assert_root
1813assert_deps " git gunzip"
1914assert_args " $3 "
2015
21- if [ -z " $3 " ]; then
22- print_help
23- exit 1
24- fi
25-
2616copy_modules () {
2717 local shim_rootfs=$( realpath -m $1 )
2818 local reco_rootfs=$( realpath -m $2 )
@@ -41,7 +31,10 @@ copy_modules() {
4131 cp -r " ${reco_rootfs} /etc/modprobe.d/" * " ${target_rootfs} /etc/modprobe.d/"
4232
4333 # decompress kernel modules if necessary - debian won't recognize these otherwise
44- find " ${target_rootfs} /lib/modules" -name " *.gz" | xargs gunzip
34+ local compressed_files=" $( find " ${target_rootfs} /lib/modules" -name ' *.gz' ) "
35+ if [ " $compressed_files " ]; then
36+ find " ${target_rootfs} /lib/modules" -name " *.gz" | xargs gunzip -k
37+ fi
4538}
4639
4740copy_firmware () {
You can’t perform that action at this time.
0 commit comments