Skip to content

New installer fixes#339

Draft
alkazar wants to merge 11 commits intomainfrom
new-installer-fixes
Draft

New installer fixes#339
alkazar wants to merge 11 commits intomainfrom
new-installer-fixes

Conversation

@alkazar
Copy link
Copy Markdown
Collaborator

@alkazar alkazar commented Jan 9, 2026

This PR includes various fixes and optimizations for the new installer.

  • Avoid writes to /var/log and /var/lib in the installer only (8a0d767)
  • Fix filesystem resize due to switch to ext4 (42a79b9)
  • Resets machine-id on installed system to avoid installing multiple systems with the same machine-id (544e935)
  • Rate limit on the disk clone operation to avoid system instability -- this limit may need to be adjusted after further testing (98889a4)
  • Ensure we reboot into the installed system - had to update the partition UUIDs in addition to the filesystem UUIDs and also ensure the new boot entry is created with the highest priority (23de1bc)
  • Fixed UUID update on root filesystem which is now ext4 (9e54046)
  • Fixed path which has apparently changed with Fedora 42/a new bootc version (bbea69d)

Due to the changes in 42a79b9 this PR cannot be merged without breaking builds based on btrfs. So we need to wait until after the next release which is expected to be the last btrfs release. For this reason, I have marked this PR as Draft.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements critical fixes for the new installer to ensure proper system installation and stability. The changes address issues with filesystem operations, UUID management, and boot configuration, while also preventing unwanted writes during installation.

Changes:

  • Prevents writes to /var/log and /var/lib during installation by mounting them as tmpfs
  • Updates UUID regeneration to handle both partition and filesystem UUIDs for ext4
  • Adds rate limiting to disk cloning operations to prevent system instability

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
rootfs/usr/libexec/playtron/os-install Implements UUID regeneration, rate limiting, machine-id reset, and boot priority configuration
config.toml Adds tmpfs mount configurations for /var/log and /var/lib during installation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Collaborator

@LukeShortCloud LukeShortCloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I built the new installer using 1.2.0.9 and then just used an overlay to add the updated os-install and resize-root-file-system.sh scripts (and finally restart SDDM). This worked nicely on my MSI Claw A2VM!

Copy link
Copy Markdown
Collaborator

@LukeShortCloud LukeShortCloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new changes look good to me. Thanks!

@LukeShortCloud
Copy link
Copy Markdown
Collaborator

Do we still need a forked bootc-image-builder container on x86? Our Arm builds are using the upstream container.

https://github.com/playtron-os/gameos/blob/unstable/1.2.0.11/Taskfile.yml#L169

else
btrfs filesystem resize max /var
fi
resize2fs ${root_device}${root_partition_number}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works for /dev/sda devices but not /dev/mmcblk or /dev/nvme.

For example:

+ echo resize2fs /dev/nvme0n13
resize2fs /dev/nvme0n13

where /dev/nvme0n13 should be /dev/nvme0n1p3 (there is a "p" for partition).

You should probably use:

resize2fs ${root_partition}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed a fix for this, thanks.

@alkazar alkazar force-pushed the new-installer-fixes branch from 0cfd733 to 0bbdc7d Compare February 18, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants