Last active
December 10, 2015 15:49
-
-
Save andrewshadura/4457192 to your computer and use it in GitHub Desktop.
This file contains 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 | |
set -e | |
PREREQ="" | |
prereqs () { | |
echo "${PREREQ}" | |
} | |
case "${1}" in | |
prereqs) | |
prereqs | |
exit 0 | |
;; | |
esac | |
. /usr/share/initramfs-tools/hook-functions | |
copy_exec /usr/bin/openvt /bin | |
exit 0 |
This file contains 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 | |
set -e | |
case "${1}" in | |
prereqs) | |
echo udev | |
exit 0 | |
;; | |
esac | |
# move the /media/winroot directory to the rootfs | |
mount -n -o move /media/winroot ${rootmnt}/media/winroot | |
# create a temporary symlink | |
nuke /media/winroot | |
ln -s ${rootmnt}/media/winroot /media/winroot | |
exit 0 |
This file contains 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 | |
set -e | |
case "${1}" in | |
prereqs) | |
echo tcplay-local.sh | |
exit 0 | |
;; | |
esac | |
sleep 2 | |
mkdir -p /media/winroot | |
ntfs-3g /dev/mapper/winroot /media/winroot | |
exit 0 |
This file contains 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 | |
set -e | |
case "${1}" in | |
prereqs) | |
exit 0 | |
;; | |
esac | |
openvt -c 1 -f -w -s tcplay -m winroot -d /dev/disk/by-id/ata-YOUR-DISK-ID-part2 -s /dev/disk/by-id/ata-YOUR-DISK-ID | |
exit 0 |
This file contains 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 | |
set -e | |
PREREQ="dmsetup" | |
prereqs () { | |
echo "${PREREQ}" | |
} | |
case "${1}" in | |
prereqs) | |
prereqs | |
exit 0 | |
;; | |
esac | |
. /usr/share/initramfs-tools/hook-functions | |
copy_exec /usr/bin/tcplay /bin | |
manual_add_modules dm_crypt | |
copy_modules_dir kernel/crypto | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment