Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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
#!/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
#!/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
#!/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
#!/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