Skip to content

Commit adf8546

Browse files
committed
run depmod after decompressing modules
1 parent d6e1791 commit adf8546

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/build-image.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ jobs:
1616
- name: Maximize build space
1717
uses: easimon/maximize-build-space@master
1818
with:
19-
root-reserve-mb: 1024
19+
root-reserve-mb: 4096
2020
swap-size-mb: 1024
2121
remove-dotnet: 'true'
22+
remove-android: 'true'
23+
remove-haskell: 'true'
2224

2325
- name: download repo
2426
uses: actions/checkout@v4
@@ -31,7 +33,7 @@ jobs:
3133
with:
3234
name: shimboot_${{ matrix.board }}
3335
path: data/shimboot_${{ matrix.board }}.bin
34-
compression-level: 9
36+
compression-level: 7
3537

3638
- name: create release
3739
uses: softprops/action-gh-release@v1

patch_rootfs.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ print_help() {
1010
}
1111

1212
assert_root
13-
assert_deps "git gunzip"
13+
assert_deps "git gunzip depmod"
1414
assert_args "$3"
1515

1616
copy_modules() {
@@ -33,7 +33,11 @@ copy_modules() {
3333
#decompress kernel modules if necessary - debian won't recognize these otherwise
3434
local compressed_files="$(find "${target_rootfs}/lib/modules" -name '*.gz')"
3535
if [ "$compressed_files" ]; then
36-
find "${target_rootfs}/lib/modules" -name "*.gz" | xargs gunzip -k
36+
echo "$compressed_files" | xargs gunzip
37+
for kernel_dir in "$target_rootfs/lib/modules/"*; do
38+
local version="$(basename "$kernel_dir")"
39+
depmod -b "$target_rootfs" "$version"
40+
done
3741
fi
3842
}
3943

website/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
6. Run `sudo ./build.sh image.bin path_to_shim data/rootfs` to generate a disk image at `image.bin`.
8787

8888
<b id="usage">Booting the Image:</b>
89-
1. Obtain a shimboot image by downloading a <a href="https://github.com/ading2210/shimboot/actions?query=branch%3Amain">prebuilt one</a> or building it yourself.
89+
1. Obtain a shimboot image by downloading a <a href="https://github.com/ading2210/shimboot/releases">prebuilt one</a> or building it yourself.
9090
2. Flash the shimboot image to a USB drive or SD card. Use the <a href="https://chrome.google.com/webstore/detail/chromebook-recovery-utili/pocpnlppkickgojjlmhdmidojbmbodfm">Chromebook Recovery Utility</a> or <a href="https://linux.die.net/man/1/dd">dd</a> if you're on Linux.
9191
3. Enable developer mode on your Chromebook. If the Chromebook is enrolled, follow the instructions on the <a href="https://sh1mmer.me">sh1mmer website</a> (see the "Executing on Chromebook" section).
9292
4. Plug the USB into your Chromebook and enter recovery mode. It should detect the USB and run the shimboot bootloader.

0 commit comments

Comments
 (0)