Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add systemd-boot to manual install on Linux #18

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 39 additions & 4 deletions Installation/manual-install-on-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,28 @@ Create a directory at / as /blissos
menuentry "BlissOS (Default) w/ FFMPEG" {
set SOURCE_NAME="blissos"
search --set=root --file /$SOURCE_NAME/kernel
linux /$SOURCE_NAME/kernel FFMPEG_CODEC=1 FFMPEG_PREFER_C2=1 quiet root=/dev/ram0 SRC=/$SOURCE_NAME
linux /$SOURCE_NAME/kernel FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 quiet root=/dev/ram0 SRC=/$SOURCE_NAME
initrd /$SOURCE_NAME/initrd.img
}

menuentry "BlissOS (Intel) w/ FFMPEG" {
set SOURCE_NAME="blissos"
search --set=root --file /$SOURCE_NAME/kernel
linux /$SOURCE_NAME/kernel HWC=drm_minigbm_celadon GRALLOC=minigbm FFMPEG_CODEC=1 FFMPEG_PREFER_C2=1 quiet root=/dev/ram0 SRC=/$SOURCE_NAME
linux /$SOURCE_NAME/kernel HWC=drm_minigbm_celadon GRALLOC=minigbm FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 quiet root=/dev/ram0 SRC=/$SOURCE_NAME
initrd /$SOURCE_NAME/initrd.img
}

menuentry "BlissOS PC-Mode (Default) w/ FFMPEG" {
set SOURCE_NAME="blissos"
search --set=root --file /$SOURCE_NAME/kernel
linux /$SOURCE_NAME/kernel quiet root=/dev/ram0 SRC=/$SOURCE_NAME
linux /$SOURCE_NAME/kernel PC_MODE=1 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 quiet root=/dev/ram0 SRC=/$SOURCE_NAME
initrd /$SOURCE_NAME/initrd.img
}

menuentry "BlissOS PC-Mode (Intel) w/ FFMPEG" {
set SOURCE_NAME="blissos"
search --set=root --file /$SOURCE_NAME/kernel
linux /$SOURCE_NAME/kernel PC_MODE=1 HWC=drm_minigbm_celadon GRALLOC=minigbm FFMPEG_CODEC=1 FFMPEG_PREFER_C2=1 quiet root=/dev/ram0 SRC=/$SOURCE_NAME
linux /$SOURCE_NAME/kernel PC_MODE=1 HWC=drm_minigbm_celadon GRALLOC=minigbm FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 quiet root=/dev/ram0 SRC=/$SOURCE_NAME
initrd /$SOURCE_NAME/initrd.img
}
```
Expand All @@ -49,6 +49,41 @@ Alternatively, one can use `truncate`
truncate -s 8G data.img
mkfs.ext4 -F -b 4096 -L "/data" data.img
```
## Alternative using systemd-boot
This method assumes you already have systemd-boot used by your Linux installation, please refer to your distro's documentation if you wish to install it.
1. Extract initrd.img and kernel from the blissOS ISO to your EFI partition. (You may rename the files if they conflict with your current Linux installation just ensure you match the config files to the new filenames)
2. Create a /blissOS directory on a ext4 partition on the same disk. Copy system.sys and create a data directory inside the /blissOS directory.
2b. If you do not have an ext4 partition you can use FAT32 or NTFS with data.img file (see above, if using FAT32 the data.img file cannot be larger than 4GB).
3. Create entries for blissOS in /boot/loader/entries/ (or /efi/loader/entries, if you mounted your ESP parittion as /efi). Each entry should be a seperate .conf file.

blissos-default.conf
```
title BlissOS
linux /kernel
initrd /initrd.img
options FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 quiet root=/dev/ram0 SRC=/blissos rw
```
blissos-intel.conf
```
title BlissOS
linux /kernel
initrd /initrd.img
options HWC=drm_minigbm_celadon GRALLOC=minigbm FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 quiet root=/dev/ram0 SRC=/blissos rw
```
blissos-pcmode.conf
```
title BlissOS
linux /kernel
initrd /initrd.img
options PC_MODE=1 FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 quiet root=/dev/ram0 SRC=/blissos rw
```
blissos-pcmode-intel.conf
```
title BlissOS
linux /kernel
initrd /initrd.img
options PC_MODE=1 HWC=drm_minigbm_celadon GRALLOC=minigbm FFMPEG_OMX_CODEC=1 FFMPEG_CODEC2_PREFER=1 quiet root=/dev/ram0 SRC=/blissos rw
```

Here are some additional tips for installing BlissOS on Linux:
- Do not try to install Bliss OS on exotic linux filesystems such ZFS, XFS, BtrFS, currently not every filesystem has built-in support in the Bliss OS kernel, ext4 is supported. If you install it on an unsupported filesystem, it will be stuck at `Detecting Android-x86...`. You will probably have to compile your own kernel and use a modified initrd.img to boot from other filesystems.
Expand Down