From bf439f339bf307693f4af0d2ae590b8a67006ad1 Mon Sep 17 00:00:00 2001 From: FrosT2k5 Date: Mon, 13 Jun 2022 19:28:39 +0530 Subject: [PATCH 1/2] Improving manual linux installation guide - Specify grub.d file to paste menuentry to, also specify to update-grub - Making data.img size variable --- install-bliss-os/manual-install-on-linux.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/install-bliss-os/manual-install-on-linux.md b/install-bliss-os/manual-install-on-linux.md index 6bb75f4..fc453f8 100644 --- a/install-bliss-os/manual-install-on-linux.md +++ b/install-bliss-os/manual-install-on-linux.md @@ -8,16 +8,21 @@ Create a directory at / as /blissos 1. Extract initrd.img, ramdisk.img, kernel and system.\* from your desired blissOS ISO into the /blissos directory. 2. Make a dir called /blissos/data (Only valid for android-pie, for higher versions you need data.img, can be created with make\_ext4fs) -3. Create a new grub entry with this the following code: +3. Create a new grub entry by pasting the below code into `/etc/grub.d/40_custom` file: `menuentry "BlissOS" { set SOURCE_NAME="blissos" search --set=root --file /$SOURCE_NAME/kernel `\ ` linux /$SOURCE_NAME/kernel quiet root=/dev/ram0 androidboot.hardware=android_x86_64 androidboot.selinux=permissive acpi_sleep=s3_bios,s3_mode SRC=/$SOURCE_NAME `\ ` initrd /$SOURCE_NAME/initrd.img`\ `}` -### **Example for making a 8gb image:** +4. Run: + +`sudo update-grub` + +### **Example for making data.img:** ``` -dd if=/dev/zero of=data.img bs=1024 count=0 seek=$[102410248] +dd if=/dev/zero of=data.img bs=1024 count=0 seek=$[1024*1024*8] sudo mkfs.ext4 -F data.img ``` +In the above command, `1024*1024*8`, here "8" represents size of data.img in GB. Which means that this command will make 8GB data.img, this can be changed according to needs \ No newline at end of file From f7a4d5f03f2e553e419872396133caef26267984 Mon Sep 17 00:00:00 2001 From: FrosT2k5 Date: Wed, 29 Jun 2022 20:33:10 +0530 Subject: [PATCH 2/2] switch to grub-mkconfig instead of update-grub --- install-bliss-os/manual-install-on-linux.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-bliss-os/manual-install-on-linux.md b/install-bliss-os/manual-install-on-linux.md index fc453f8..cfa27d4 100644 --- a/install-bliss-os/manual-install-on-linux.md +++ b/install-bliss-os/manual-install-on-linux.md @@ -17,7 +17,7 @@ Create a directory at / as /blissos 4. Run: -`sudo update-grub` +`sudo grub-mkconfig -o /boot/grub/grub.cfg` ### **Example for making data.img:** @@ -25,4 +25,4 @@ Create a directory at / as /blissos dd if=/dev/zero of=data.img bs=1024 count=0 seek=$[1024*1024*8] sudo mkfs.ext4 -F data.img ``` -In the above command, `1024*1024*8`, here "8" represents size of data.img in GB. Which means that this command will make 8GB data.img, this can be changed according to needs \ No newline at end of file +In the above command, `1024*1024*8`, here "8" represents size of data.img in GB. Which means that this command will make 8GB data.img, this can be changed according to needs