On this page
Booting CapivaOS (the unofficial LineageOS 24.0 port based on Android 17 for x86_64 PCs) on a spare laptop no longer requires repartitioning your drive or turning off UEFI Secure Boot by default. Behind a straightforward live ISO, however, specific choices around USB writing modes, filesystem layouts, Secure Boot key enrollment, Ventoy boot paths and kernel parameters decide whether a machine reaches the desktop cleanly or stalls before SurfaceFlinger ever starts.




This guide translates the technical workflow documented in Mateus Seiboth’s official android_device_pc_x86_64 and PcInstaller repositories. If you want the broader project overview or a comparison with other x86 Android options first, see our LineageOS 24 PC port guide and our CapivaOS vs BlissOS vs Waydroid comparison.
Writing the USB stick: DD mode vs ISO mode
The first practical decision is how you write the ISO image downloaded from SourceForge to a USB flash drive. The official documentation distinguishes two methods with direct consequences for data persistence:
- Disk-image write (Rufus DD mode, balenaEtcher,
dd): the cleanest option for a quick read-only test. Because the stick exposes a non-writableiso9660filesystem, the live session keeps all user data in RAM (pc.live=1). If you pick the persistent GRUB entry on a DD-written stick,pc-initdetects that there is no writable partition, informs you, and falls back to RAM. - Rufus ISO mode (NTFS): copies the files onto a writable partition. Because
system.imgexceeds FAT32’s 4 GB file limit, Rufus uses NTFS; the ISO already bundles the EFI partition files underEFI/BOOTfor this layout, and GRUB locates the drive through thelineage/install-live.idmarker when no ISO UUID is present.
To keep apps, settings and files on the flash drive without touching the internal disk, GRUB includes LineageOS (persistent: keep data on the USB stick), which passes pc.live=1 together with pc.persist=1. On first boot it prompts for the desired size in GB (pressing Enter or waiting 60 seconds picks the default of 8 GB or whatever fits) and creates LineageOS/userdata.img on the partition holding the ISO, such as Ventoy’s exFAT volume or a Rufus ISO-mode drive. Subsequent boots mount that ext4 image automatically without asking again.
Folder install on disk: NTFS/exFAT vs ext4
From inside the live session, the PcInstaller app (backed by the pc-installd root daemon) installs CapivaOS into a folder on an existing partition without modifying the partition table. The default layout lives in <partition>/lineage/ and holds kernel (bzImage), initrd.img (pc-init), install-<id>.id, plus addons/, patches/, metadata/pc-logs/ and the system and data storage.
Target filesystem rules are explicit:
- Linux filesystems (ext4, F2FS, Btrfs): support both disk-image storage (
system.imganddata.img) and extracted folder layouts (system/anduserdata/). - NTFS (
ntfs3), exFAT and FAT32: accept image mode only (system.img+data.img). FAT32 still enforces a 4 GiB per-file ceiling, which restricts modern images. - Volumes refused by PcInstaller: BitLocker, LUKS, LVM, RAID members, swap, ISO 9660 and every partition belonging to the running live USB drive are rejected with a clear reason. A Windows partition left hibernated or with Fast Startup enabled also fails read-only mounting (
mount_failed) and requires a full shutdown first.
On UEFI machines, the installer places shimx64.efi, mmx64.efi, the signed grubx64.efi and ENROLL_THIS_KEY_IN_MOKMANAGER.der inside EFI/LineageOS/ on the EFI System Partition (ESP), creates a dedicated UEFI boot entry, and writes EFI/BOOT/ only when it is empty or already owned by CapivaOS. On legacy BIOS disks it writes boot.img to sector 0 and core.img into the free space before the first partition (255 sectors required), storing GRUB modules and the original MBR backup in pc-grub/. Every generated GRUB menu also chains detected Windows and Linux installations.
UEFI Secure Boot: MOK enrollment vs disabled
CapivaOS handles UEFI Secure Boot the same way mainstream Linux distributions do: the PC firmware trusts Microsoft’s keys, which verify Fedora’s shimx64.efi; shim then verifies the builder-signed grubx64.efi (with SBAT metadata) and kernel via a Machine Owner Key (MOK), while kernel modules are signed during the build.
Three practical paths cover almost every laptop:
- Secure Boot enabled (first live USB boot): shim does not yet recognize the builder’s key and launches MokManager. Press Enter on the error screen, hit any key within 10 seconds, choose Enroll key from disk, select the
LINEAGE_PCvolume andENROLL_THIS_KEY_IN_MOKMANAGER.der, then pick Continue, Yes and Reboot. You only enroll the key once per machine; the same instructions are shipped inSECURE_BOOT.txtand in the GRUB entry Secure Boot: help (ajuda). - Secure Boot enabled via PcInstaller: if you already enrolled the key during live boot,
pc-installdsees it inMokListRTand skips enrollment. If you installed with Secure Boot off and plan to re-enable it, PcInstaller can queue the key (ENROLL_KEY) by writingMokNewandMokAuth(likemokutil --import) with a random eight-digit password chosen specifically to avoid US keyboard layout mismatches inside MokManager. - Secure Boot disabled in firmware: shim launches GRUB without signature checks, so the exact same EFI files boot cleanly without MokManager.
One technical detail worth noting for troubleshooting: because upstream Linux 7.2 does not carry Fedora’s CONFIG_LOCK_DOWN_IN_EFI_SECURE_BOOT patch, /sys/kernel/security/lockdown stays at [none] under Secure Boot, while CONFIG_IMA_ARCH_POLICY still enforces kernel module signature verification (sig_enforce=Y), which is why all modules are signed and left unstripped.
Ventoy multiboot: Normal mode vs GRUB2 mode
You can drop the CapivaOS ISO directly onto a Ventoy multiboot drive, but the boot mode selected in Ventoy’s menu changes how the kernel finds the image:
- Normal mode:
pc-initscans the root and one directory level down on every partition for an ISO carrying volume labelLINEAGE_PC, loop-mounts it and boots the folder inside. - GRUB2 mode: boots via
boot/grub/loopback.cfgand passesiso-scan/filename=${iso_path}directly to the kernel, naming the exact ISO file path without label scanning.
That difference matters on real hardware: in the project’s tested-devices log, a Dell Vostro 3420 hit a kernel panic inside Ventoy’s own boot script in Normal mode (Comm: sh, exit code 127), whereas Ventoy’s GRUB2 mode booted cleanly. If a Ventoy stick stalls early, switching to GRUB2 mode is the first workaround to try.
GRUB recovery flags and network ADB debugging (TCP 5555)
When a laptop hits a black screen, has an unsupported hybrid NVIDIA GPU or fails to reach the desktop, editing the GRUB linux line (press e on an entry) gives you direct recovery levers:
pc.live=1andpc.persist=1: control RAM-only live boots versus persistentLineageOS/userdata.imgstorage.pc.src=<folder>andpc.id=<id>: pin the boot to a folder containinginstall-<id>.id; the live ISO usespc.id=liveso a plugged-in USB drive and a disk installation never cross-boot.pc.previous=1: boots the prior system preserved after an update (system.old.imgorsystem.old/, pluskernel.oldandinitrd.old.img).nomodesetandnouveau.modeset=0: exposed in the installer’s GRUB submenu for safe graphics and laptops with unsupported NVIDIA GPUs.androidboot.pc.adb=1: enables network ADB on TCP port 5555 from boot without opening Android Settings.
Because most modern PCs lack a serial console, the GRUB entry LineageOS (debug: adb over network) lets you pull live logs from another computer on the same LAN:
adb connect <PC-IP-address>:5555
adb logcat
The first remote connection displays the standard RSA authorization dialog on the PC screen. When a boot fails before networking or display output comes up, CapivaOS automatically keeps logs from the last three boots in metadata/pc-logs/boot-N/ (kernel.txt, logcat.txt and a pstore/ dump captured via efi_pstore after a kernel panic). You can inspect those files from Windows or Linux on the same partition, or export them as a zip archive from Diagnostics > Logs > Save logs on the next successful boot.
What actually changes in practice
Compared with older Android-x86 workflows that forced users to disable Secure Boot, carve out a dedicated ext4 partition and maintain manual GRUB stanzas, CapivaOS lowers the risk of breaking a primary Windows or Linux laptop. Combining Fedora’s signed shim with a one-time MOK keeps firmware security intact, while install-<id>.id and pc.previous=1 make updates and tests repeatable.
Hardware maturity still varies by laptop model: webcams, SOF microphones, Wi-Fi chipsets and suspend behavior remain device-dependent, and the repository’s automated Secure Boot tests run under QEMU/OVMF while bare-metal coverage relies on per-machine reports. Knowing when to choose Rufus ISO over DD mode, when to switch Ventoy to GRUB2 mode and where metadata/pc-logs/ lives turns most first-boot hiccups into a quick diagnosis.
In short
- Live vs persistent USB: Rufus DD, balenaEtcher and
ddcreate a read-only live stick (RAM only); persistent storage inLineageOS/userdata.imgrequires Ventoy exFAT or Rufus ISO mode on NTFS. - Folder install rules: ext4, F2FS and Btrfs accept image or extracted folder layouts; NTFS and exFAT require
system.img+data.img, with Windows fully shut down (no Fast Startup or BitLocker). - UEFI Secure Boot: when enabled, enroll
ENROLL_THIS_KEY_IN_MOKMANAGER.deronce in MokManager (or queue it from PcInstaller); when disabled, shim launches GRUB without signature checks. - Ventoy: if Normal mode panics in Ventoy’s boot script, switch to GRUB2 mode, which passes
iso-scan/filename=${iso_path}throughloopback.cfg. - Recovery and logs:
pc.previous=1rolls back an update,androidboot.pc.adb=1opens ADB over TCP 5555, andmetadata/pc-logs/boot-N/preserves kernel, logcat andpstorelogs across the last three boots.
- GitHub – mateusseiboth/android_device_pc_x86_64 (CapivaOS / LineageOS 24.0 for x86_64 PCs documentation)
- GitHub – mateusseiboth/android_packages_apps_PcInstaller (PcInstaller app and pc-installd service)
- SourceForge – CapivaOS Android 17 Live ISO Downloads
- GitHub – rhboot/shim (UEFI Secure Boot shim and MokManager)
- Ventoy – Multiboot USB tool for ISO images