Created
November 15, 2012 02:00
-
-
Save Tasssadar/4076170 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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