R0bur
Crew Member
Posts: 184
Likes: 126
|
Post by R0bur on Jan 26, 2024 8:24:08 GMT
The good news is that the Ubuntu 23.10 boots up on systems with low RAM. I have tested it on virtual machines and I can say that Ubuntu 23.10 Server is bootable and can run on a system with 384 MB of RAM while Bodhi 7.0-64 requires a minimum of 768 MB. The initial root filesystem image initrd.img has four sections now: 1) AMD microcode (CPIO archive) 2) Intel microcode (CPIO archive) 3) Kernel modules and firmware (CPIO archive) 4) Root filesystem (ZSTD-compressed CPIO archive) Some additional information about the changes is provided by Benjamin Drung here: discourse.ubuntu.com/t/reduce-initramfs-size-and-speed-up-the-generation-in-ubuntu-23-10/38972
|
|
R0bur
Crew Member
Posts: 184
Likes: 126
|
Post by R0bur on Mar 30, 2024 10:20:22 GMT
Here is the way to rebuild the Bodhi Linux 7.0 distribution image to make it bootable on low-RAM computers. I assume that the fresh installation of the Bodhi Linux 7.0 (not upgraded!) is used as the working environment. You need 3 Gb of free disk space and two shell script from the package bl70-lowram.tgz (https://static.xakep.ru/attach/bl70-lowram.tgz).
1) Install the required software:
$ sudo apt update $ sudo apt install zstd genisoimage 2) Copy the distribution image contents to the directory ./isofs:
$ mkdir ./isofs $ sudo cp -R /mnt/iso/. ./isofs $ sudo chown -R $USER:$USER ./isofs where /mnt/iso is the mount point of the original distribution image (by default it can be /media/'Bodhi Live CD'). 3) Execute the shell script repack_initrd.sh from the package bl70-lowram.tgz:
$ /bin/sh repack_initrd.sh A new minimal filesystem image will appear in the file isofs/casper/initrd.zst 4) Replace the old minimal filesystem image with a new one:
$ mv isofs/casper/initrd.zst isofs/casper/initrd.gz 5) Execute the shell-script make_iso.sh from the package bl70-lowram.tgz:
$ /bin/sh make_iso.sh A new ISO image will appear in the file bl70_lowram.iso
Use ISO image bl70_lowram.iso instead of the official distribution image for low-RAM computers!
P.S. Here is a patch for repack_initrd.sh to remove the host operating system dependency so it can be used in Bodhi Linux 6.0. repack_initrd.patch:
51,53c51,52 < -exec rm '{}' \; < echo 'Update modules dependencies.' < depmod -ab $INITRAMFS --- > -exec mv '{}.zst' '{}' \; >
|
|
R0bur
Crew Member
Posts: 184
Likes: 126
|
Post by R0bur on Mar 30, 2024 13:35:28 GMT
|
|
|
Post by Hippytaff on Mar 30, 2024 20:58:09 GMT
Have you got a GitHub repo for this?
|
|
|
Post by MarceloMachadoxD on Apr 1, 2024 15:30:52 GMT
just to understand, i think all answers will be no but... i need to be on a bodhi variation to run the scripts? i need to download and place or mount the bl7 iso in some place? [this answer is on repack_initrd.sh file "copy the distribution image contents into the directory ./isofs:" ]
|
|
R0bur
Crew Member
Posts: 184
Likes: 126
|
Post by R0bur on Apr 1, 2024 17:05:08 GMT
I tested those scripts in the Bodhi Linux 6.0 environment. They haven't some hardlock to any Linux distribution but in other distributions some packages may be missed.
I think the best way to remaster the BL70 iso is:
0) Install the packages zstd and genisoimage:
$ sudo apt update
$ sudo apt install zstd genisoimage
1) Download the TGZ-package bl70_lowram_v2.tgz, place it into your home directory and unpack it:
$ tar -xzf bl70_lowram_v2.tgz You will got bl70_lowram subdirectory that contains two shell scripts.
2) Go into the created subdirectory:
$ cd bl70_lowram_v2 3) Create the subdirectory for the official ISO distribution contents:
$ mkdir isofs 4) Copy the official Bodhi Linux 7.0 ISO distribution contents into that subdirectory. You can mount your USB stick or DVD-disc or, if you have the file bodhi-7.0.0-64.iso in your home directory, you can mount it using loopback:
$ sudo mkdir /mnt/iso $ sudo mount -t iso9660 -o loop,ro ~/bodhi-7.0.0-64.iso /mnt/iso Then copy the contents:
$ sudo cp -R /mnt/iso/. ./isofs $ sudo chown -R $USER:$USER ./isofs And then unmount the distribution ISO:
$ sudo umount /mnt/iso $ sudo rmdir /mnt/iso Anyway you need to copy the ISO contents into the working directory. 5) Continue from the step 3) of the post above (execute repack_initrd.sh ...)
P.S. Note for the step 4. Be sure you've copied the hidden directory .disk too. To verify that after you copy the contents, execute: $ ls -l ./isofs/.disk If you will see four files - all right.
|
|
R0bur
Crew Member
Posts: 184
Likes: 126
|
Post by R0bur on Apr 2, 2024 6:35:15 GMT
to me, iso boot and install but enter on grub rescue terminal error file '/boot/grub/i386/normal.mod' not found but i think its an problem of my device Let's go to the appropriate thread: bodhilinux.boards.net/post/12739/thread
|
|
R0bur
Crew Member
Posts: 184
Likes: 126
|
Post by R0bur on Apr 21, 2024 17:01:01 GMT
Have you got a GitHub repo for this? Sure, I have the GitHub repo for this (now ). It might be better to post this in the ' Tutorials and How to's' section. But I don't see a way to attach shell scripts to it.
|
|
|
Post by thewaiter on Apr 21, 2024 17:03:48 GMT
Fantastic THX Actually it would be great to have all ISOs patched. Prob as versions BL7.1. Robert? Stefab
|
|