# Lock the Bootloader

### Step-by-Step Instructions

1. Click the **Lock bootloader** button in the installer.
2. A confirmation prompt will appear on your phone screen.
3. Use the **Volume Down** button to select:

   **Lock the bootloader**
4. Press the **Power** button to confirm.

<figure><img src="/files/llWspHCRYKgVJKkfqD3P" alt="" width="563"><figcaption></figcaption></figure>

### What Happens Next

* The device will erase data again (this is required).
* The phone will reboot.
* The device state will change to **locked**.

After reboot, your Fastboot screen should indicate that the device state is:

<mark style="color:$success;">**locked**</mark>

### Confirmation

Before proceeding, confirm:

* That you understand all data will be erased.
* That the device state on your phone screen shows **locked**.

- [x] Once confirmed, click <mark style="color:$primary;">**Next**</mark> to complete the installation process.

### Installation Complete

Your device is now running **Castrum OS** and is ready for configuration.

The operating system has been successfully installed and the bootloader is locked.

{% hint style="info" %}

## **Locking the bootloader ensures:**

* Verified Boot is re-enabled
* The system integrity is enforced
* The device returns to a secure state
  {% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://conectum-portal.gitbook.io/conectum-portal-documentation/flash-castrum-os/connect-your-device-to-the-web-installer/lock-the-bootloader.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
