diff --git a/all/usr/bin/fix-qemu-layout.sh b/all/usr/bin/fix-qemu-layout.sh new file mode 100644 index 0000000..c6baa75 --- /dev/null +++ b/all/usr/bin/fix-qemu-layout.sh @@ -0,0 +1,5 @@ +#!/bin/ash + +rm -f /usr/local/bin/qemu-system-x86_64 +cp -vf /usr/bin/launcher.dat /usr/local/bin/qemu-system-x86_64 +chmod 755 /usr/local/bin/qemu-system-x86_64 \ No newline at end of file diff --git a/all/usr/bin/launcher.dat b/all/usr/bin/launcher.dat new file mode 100644 index 0000000..6b6adaf Binary files /dev/null and b/all/usr/bin/launcher.dat differ diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..e7c0e59 --- /dev/null +++ b/install.sh @@ -0,0 +1,26 @@ +#!/usr/bin/env ash + +if [ "${1}" = "late" ]; then + echo "Fix qemu-system-x86_64" + cp -vf /usr/bin/launcher.dat /tmpRoot/usr/local/bin/launcher.dat + cp -vf /usr/bin/fix-qemu-layout.sh /tmpRoot/usr/local/bin/fix-qemu-layout.sh + + DEST="/tmpRoot/usr/lib/systemd/system/fix-qemu-layout.service" + echo "[Unit]" >${DEST} + echo "Description=Fix qemu layout" >>${DEST} + echo "After=multi-user.target" >>${DEST} + echo >>${DEST} + echo "[Service]" >>${DEST} + echo "Type=oneshot" >>${DEST} + echo "RemainAfterExit=true" >>${DEST} + echo "ExecStart=/usr/local/bin/fix-qemu-layout.sh" >>${DEST} + echo >>${DEST} + echo "[Install]" >>${DEST} + echo "WantedBy=multi-user.target" >>${DEST} + + mkdir -vp /tmpRoot/lib/systemd/system/multi-user.target.wants + ln -vsf /usr/lib/systemd/system/fix-qemu-layout.service /tmpRoot/lib/systemd/system/multi-user.target.wants/fix-qemu-layout.service +fi + + + diff --git a/manifest.yml b/manifest.yml new file mode 100644 index 0000000..11fbc96 --- /dev/null +++ b/manifest.yml @@ -0,0 +1,33 @@ +version: 1 +name: fix-qemu-layout +description: "Fix layout qemu, and work fine with vnc/guacamole" +all: + install-script: "install.sh" + copy: "all" +available-for: + apollolake-4.4.59: + apollolake-4.4.180: + apollolake-4.4.302: + bromolow-3.10.105: + bromolow-3.10.108: + broadwell-4.4.105: + broadwell-4.4.180: + broadwell-4.4.302: + broadwellnk-4.4.59: + broadwellnk-4.4.180: + broadwellnk-4.4.302: + epyc7002-5.10.55: + denverton-4.4.59: + denverton-4.4.180: + denverton-4.4.302: + geminilake-4.4.59: + geminilake-4.4.180: + geminilake-4.4.302: + purley-4.4.59: + purley-4.4.180: + purley-4.4.302: + r1000-4.4.180: + r1000-4.4.302: + v1000-4.4.59: + v1000-4.4.180: + v1000-4.4.302: diff --git a/compile.sh b/src/compile.sh similarity index 100% rename from compile.sh rename to src/compile.sh diff --git a/launcher.c b/src/launcher.c similarity index 100% rename from launcher.c rename to src/launcher.c