Skip to content

Commit

Permalink
extensions: grub-with-dtb: add UMS menu entry to GRUB if initramfs …
Browse files Browse the repository at this point in the history
…ums hook is detected

- this allows user to enter UMS mode from GRUB
- for usage with the `initramfs-usb-gadget-ums` extension
- has no effect unless `initramfs-usb-gadget-ums` extension is enabled together with `grub-with-dtb`
  • Loading branch information
rpardini authored and igorpecovnik committed Nov 19, 2023
1 parent 1e184f1 commit 205dd11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/blobs/grub/09_linux_with_dtb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,10 @@ while [ "x$list" != "x" ]; do
"${GRUB_CMDLINE_LINUX_RECOVERY} ${GRUB_CMDLINE_LINUX}"
fi

if [ -f /etc/initramfs-tools/scripts/init-premount/usb-gadget-ums.sh ]; then
linux_entry "${OS}" "${version}" init-ums "initrd=ums ums=yes ${GRUB_CMDLINE_LINUX}"
fi

list=$(echo $list | tr ' ' '\n' | fgrep -vx "$linux" | tr '\n' ' ')
done

Expand Down

0 comments on commit 205dd11

Please sign in to comment.