Set suid on xkbcomp to fix X keyboard initialization

- Add chmod u+s to /usr/bin/xkbcomp in installed system
- Fixes XKB keymap compilation errors during X startup
- Resolves 'Failed to activate virtual core keyboard' error
- Allows mbetterclient user to properly initialize X keyboard
parent ab504142
...@@ -733,6 +733,12 @@ NETEOF ...@@ -733,6 +733,12 @@ NETEOF
rm -rf "$TARGET_MOUNT/lib/live" 2>/dev/null || true rm -rf "$TARGET_MOUNT/lib/live" 2>/dev/null || true
rm -f "$TARGET_MOUNT/etc/profile.d/zz-live-config_xinit.sh" 2>/dev/null || true rm -f "$TARGET_MOUNT/etc/profile.d/zz-live-config_xinit.sh" 2>/dev/null || true
# Set suid on X server and xkbcomp for mbetterclient user to start X
print_status "Setting suid on X server and xkbcomp for user X startup..."
chmod u+s "$TARGET_MOUNT/usr/bin/Xorg" 2>/dev/null || true
chmod u+s "$TARGET_MOUNT/usr/lib/xorg/Xorg" 2>/dev/null || true
chmod u+s "$TARGET_MOUNT/usr/bin/xkbcomp" 2>/dev/null || true
print_status "Target system configuration completed" print_status "Target system configuration completed"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment