Cette révision appartient à :
2025-07-27 20:11:04 +02:00
Parent f08ec5d373
révision 4e91ff4efc
6 fichiers modifiés avec 64 ajouts et 0 suppressions
+26
Voir le fichier
@@ -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