Create .baremetal file on internal system. Hide install to disk if already installed.
This commit is contained in:
@@ -355,6 +355,13 @@ if sudo mount "$TARGET_ROOT_PART" "$TEMP_MOUNT" 2>/dev/null; then
|
||||
# Remove any USB-specific markers
|
||||
sudo rm -f "$TEMP_MOUNT/home/stormux/.firstboot" 2>/dev/null || true
|
||||
|
||||
# Create .baremetal marker file to indicate installed system
|
||||
echo "Creating baremetal system marker..."
|
||||
sudo touch "$TEMP_MOUNT/home/stormux/.baremetal"
|
||||
sudo chown stormux:stormux "$TEMP_MOUNT/home/stormux/.baremetal" 2>/dev/null || true
|
||||
# Set immutable attribute to prevent accidental deletion
|
||||
sudo chattr +i "$TEMP_MOUNT/home/stormux/.baremetal" 2>/dev/null || echo "Warning: Could not set immutable attribute on .baremetal"
|
||||
|
||||
# Update /etc/fstab with new UUIDs
|
||||
if [[ ${#uuid_mappings[@]} -gt 0 ]]; then
|
||||
update_fstab_uuids "$TEMP_MOUNT" "${uuid_mappings[@]}"
|
||||
|
||||
Reference in New Issue
Block a user