namespace:q4os
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| namespace:q4os [2025/10/26 08:05] – jo | namespace:q4os [2025/10/27 07:00] (current) – jo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| < | < | ||
| - | sudo tee / | + | sudo chmod +x / |
| - | #!/bin/sh | + | |
| - | # Called at the end of the initramfs boot sequence | + | |
| - | PREREQ="" | + | If the Windows partition is not / |
| - | prereqs() { echo " | + | |
| - | case " | + | |
| - | prereqs) prereqs; exit 0 ;; | + | |
| - | esac | + | |
| - | # Mount the Windows NTFS system partition (usually / | + | 4. Re‑build |
| - | mkdir -p /mnt/ntfs | + | |
| - | mount -t ntfs-3g -o ro /dev/sda1 /mnt/ntfs || exit 1 | + | |
| - | # The Q4OS installer files are in the folder " | + | First, make sure you are using an i686 kernel (the Omnibook’s CPU is 32‑bit). If you are on an amd64 kernel, install the 32‑bit one: |
| - | mkdir -p /cdrom | + | |
| - | mount --bind /mnt/ntfs/q4os-installer | + | bash |
| + | |||
| + | sudo apt-get install -y linux-image-686 | ||
| + | sudo reboot | ||
| + | |||
| + | After the VM boots the 32‑bit kernel, rebuild the initramfs: | ||
| + | |||
| + | bash | ||
| + | |||
| + | sudo update-initramfs -u -k all | ||
| + | |||
| + | The new initramfs will be written as / | ||
| + | 5. Export the kernel and the freshly built initramfs | ||
| + | |||
| + | bash | ||
| + | |||
| + | # Find the exact kernel name (should be something‑686) | ||
| + | KERNEL=$(basename / | ||
| + | |||
| + | mkdir -p ~/export | ||
| + | cp / | ||
| + | cp / | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | sudo tee /etc/ | ||
| + | ata_piix | ||
| + | ahci | ||
| + | pata_acpi | ||
| + | sd_mod | ||
| + | libata | ||
| + | ntfs | ||
| + | ntfs3 | ||
| + | ext4 | ||
| + | vfat | ||
| + | loop | ||
| + | squashfs | ||
| + | iso9660 | ||
| EOF | EOF | ||
| + | |||
| </ | </ | ||
namespace/q4os.1761465946.txt.gz · Last modified: by jo
