fix x11 failing to start sometimes

This commit is contained in:
ading2210 2023-10-27 20:45:03 +00:00
parent f26b682ed3
commit 62ae740deb
4 changed files with 22 additions and 9 deletions

View File

@ -22,7 +22,7 @@ Note that rootfs partitions have to be named `shimboot_rootfs:<partname>` for th
## Status: ## Status:
### What Works: ### What Works:
- Systmed - Systemd
- X11 - X11
- XFCE - XFCE
- Backlight - Backlight
@ -69,12 +69,13 @@ Note that rootfs partitions have to be named `shimboot_rootfs:<partname>` for th
1. Grab a Chrome OS RMA Shim from somewhere. Most of them have already been leaked and aren't too difficult to find. 1. Grab a Chrome OS RMA Shim from somewhere. Most of them have already been leaked and aren't too difficult to find.
2. Download a Chrome OS [recovery image](https://chromiumdash.appspot.com/serving-builds?deviceCategory=ChromeOS) for your board. 2. Download a Chrome OS [recovery image](https://chromiumdash.appspot.com/serving-builds?deviceCategory=ChromeOS) for your board.
3. Clone this repository and cd into it. 3. Clone this repository and cd into it.
4. Run `sudo ./build_rootfs.sh data/rootfs bookworm` to build the base rootfs. 4. Run `mkdir -p data/rootfs` to create a directory to hold the rootfs.
5. Run `sudo ./patch_rootfs.sh path_to_shim path_to_reco data/rootfs` to patch the base rootfs and add any needed drivers. 5. Run `sudo ./build_rootfs.sh data/rootfs bookworm` to build the base rootfs.
6. Run `sudo ./build.sh image.bin path_to_shim data/rootfs` to generate a disk image at `image.bin`. 6. Run `sudo ./patch_rootfs.sh path_to_shim path_to_reco data/rootfs` to patch the base rootfs and add any needed drivers.
7. Flash the generated image to a USB drive or SD card. 7. Run `sudo ./build.sh image.bin path_to_shim data/rootfs` to generate a disk image at `image.bin`.
8. Enable developer mode on your Chromebook. Even if it's enrolled and dev mode is blocked, it'll still work for running shimboot. 8. Flash the generated image to a USB drive or SD card.
9. Plug the USB into your Chromebook and enter recovery mode. It should detect the USB and run the shimboot bootloader. 9. Enable developer mode on your Chromebook. Even if it's enrolled and dev mode is blocked, it'll still work for running shimboot.
10. Plug the USB into your Chromebook and enter recovery mode. It should detect the USB and run the shimboot bootloader.
Note that these instructions are currently incomplete. Note that these instructions are currently incomplete.

View File

@ -52,7 +52,6 @@ done
chroot_command="DEBUG=${DEBUG} release_name=${release_name} /opt/setup_rootfs.sh" chroot_command="DEBUG=${DEBUG} release_name=${release_name} /opt/setup_rootfs.sh"
chroot $rootfs_dir /bin/bash -c "${chroot_command}" chroot $rootfs_dir /bin/bash -c "${chroot_command}"
chroot_mounts="proc sys dev run"
for mountpoint in $chroot_mounts; do for mountpoint in $chroot_mounts; do
umount -l "${rootfs_dir}/$mountpoint" umount -l "${rootfs_dir}/$mountpoint"
done done

View File

@ -0,0 +1,10 @@
[Unit]
Description=kill frecon to allow xorg to start
[Service]
Type=oneshot
ExecStart=/usr/bin/pkill frecon-lite
RemainAfterExit=true
[Install]
WantedBy=graphical.target

View File

@ -25,8 +25,11 @@ apt-get install -y ca-certificates
apt-get update apt-get update
apt-get upgrade -y apt-get upgrade -y
#enable shimboot services
systemctl enable kill-frecon.service
#install desktop #install desktop
apt-get install -y task-xfce-desktop cloud-utils apt-get install -y task-xfce-desktop cloud-utils
#set up hostname and username #set up hostname and username
read -p "Enter the hostname for the system: " hostname read -p "Enter the hostname for the system: " hostname