Skip to content

Instantly share code, notes, and snippets.

@Tasssadar
Created November 15, 2012 02:00
Show Gist options
  • Save Tasssadar/4076170 to your computer and use it in GitHub Desktop.
Save Tasssadar/4076170 to your computer and use it in GitHub Desktop.
#!/bin/sh -e
# move /init to main_init and add trampoline binary
# to launch multirom
# Also must be done to support multirom:
# - edit /sbin/mkinitramfs to copy init as main_init
# - add script to copy new boot image to multirom folder to /etc/initramfs/post-update.d/
# - disable initramfs-tools update?
MINKVER="2.6.24"
PREREQ=""
# Output pre-requisites
prereqs()
{
echo "$PREREQ"
}
case "$1" in
prereqs)
prereqs
exit 0
;;
esac
. /usr/share/initramfs-tools/hook-functions
copy_exec /bin/trampoline /init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment