-
Notifications
You must be signed in to change notification settings - Fork 0
Booting Modes and Compression
ThinStation supports several booting modes, each with unique characteristics and use cases.
Description: LiveCD mode operates similarly to many other projects. It involves an initrd
file encapsulated in a squashfs
archive, loaded into memory at boot. An early boot process involves creating a temporary file system (tmpfs
) which merges with the read-only (RO) filesystem to create a read-write (RW) filesystem. The system then transitions to this new union filesystem to continue operations.
Pros:
- Simple to create.
- Disk-independent operation.
Cons:
- Filesystem lookup overhead.
- Moderate boot times.
- Moderate memory usage.
- Squash lag on application launch.
How to Use:
- In
build.conf
, ensure theoverlayfs
package is included. - Set
initrdcmd
tosquashfs
.
Description: This mode uses a simple initrd
approach where the entire filesystem is compressed during build and then decompressed during booting.
Pros:
- Simple to create.
- Disk-independent.
- Very fast application launching.
Cons:
- High memory usage during boot.
- Longer boot times.
How to Use:
- In
build.conf
, ensureoverlayfs
is 'not' included. - Set
initrdcmd
togzip
,bzip2
, orxz
.
Description: Exclusive to ThinStation, Fastboot mode splits the filesystem into essential early-boot components and additional components loaded later. It includes two sub-modes: standard and lotsofmem
.
-
Process: Critical libraries and binaries are relocated to the
fastboot
subdirectory, with their original locations linked until/lib64
contains only links. This modified filesystem is then compressed into aninitrd
. Additional OS requirements are compressed into asquashfs
archive. -
Boot Process: The
initrd
decompresses into memory, starting execution. Thesquashfs
archive is mounted from boot media at/lib64
early during initialization.
Pros:
- Lowest memory usage.
- Fastest booting.
Cons:
- OS dependency on external
squashfs
archive location. - Some filesystem parts remain read-only.
- Squash lag on application launch.
How to Use:
- In
build.conf
, setinitrdcmd
togzip
,bzip2
, orxz
and enablefastboot true
. - Optionally include the overlay package.
- In
thinstation.conf.buildtime
, configure a mount entry for booting from removable media or internal storage that targets a volume label at/boot
.
-
Process: Similar to standard mode, but the
squashfs
archive is decompressed into memory rather than mounted, enhancing performance and accessibility.
Pros:
- Rapid booting and application launching.
- Full filesystem read-write capability.
Cons:
- High memory consumption.
- OS dependency on external
squashfs
archive location.
How to Use:
- In
build.conf
, ensureoverlayfs
is 'not' included. - Set
initrdcmd
togzip
,bzip2
, orxz
and enablefastboot lotsofmem
inbuild.conf
. - Configure a mount entry in
thinstation.conf.buildtime
as in standard mode.