clearlinux / clr-init Goto Github PK
View Code? Open in Web Editor NEWInitrd created using systemd as init program
License: GNU General Public License v3.0
Initrd created using systemd as init program
License: GNU General Public License v3.0
Hi,
I tried to use this via the bundle bootloader-extras. When changing the kernel cmd line to use init=/init
(see why here https://community.clearlinux.org/t/bootloader-extras-apparently-not-working/2636 ) then the boot process stops at some point. The system is not hanging, it responds to usb events or ctrl+alt+del but doesn't seem to want to reach the multi-user target or so.
instead load systemd and all its stuffs clear could have a custom init process, just doing the needed things to mount root
The initrd Makefile
code relies on ldd
which will provide the AVX2 optimized libraries as link targets if it runs on a machine that has AVX2.
This makes the initrd nonfunctional on all non-AVX2 systems, such as IVB.
The code can not rely on ldd
plain output for finding required libraries. It should remain functional on older platforms.
$ python3 /usr/share/clr-avx-tools/avxjudge.py libcryptsetup.so.12
Analyzing libcryptsetup.so.12
Top SSE functions by instruction count
crypt_benchmark_pbkdf@@CRYPTSETUP_2.0 17.14 %s
crypt_benchmark@@CRYPTSETUP_2.0 5.88 %s
crypt_convert@@CRYPTSETUP_2.0 3.36 %s
crypt_get_integrity_info@@CRYPTSETUP_2.0 2.9 %s
.fini 2.84 %s
Top SSE functions by value
.fini 116.76
crypt_token_register@@CRYPTSETUP_2.0 103.78
crypt_set_debug_level@@CRYPTSETUP_2.0 25.02
crypt_wipe@@CRYPTSETUP_2.0 22.17
crypt_set_pbkdf_type@@CRYPTSETUP_2.0 9.05
Top AVX2 functions by instruction count
.fini 1.7 %s
crypt_benchmark@@CRYPTSETUP_2.0 0.74 %s
crypt_token_register@@CRYPTSETUP_2.0 0.46 %s
crypt_init_by_name_and_header@@CRYPTSETUP_2.0 0.13 %s
crypt_set_pbkdf_type@@CRYPTSETUP_2.0 0.03 %s
Top AVX2 functions by value
.fini 16.23
crypt_token_register@@CRYPTSETUP_2.0 12.88
crypt_benchmark@@CRYPTSETUP_2.0 2.0
crypt_init_by_name_and_header@@CRYPTSETUP_2.0 0.2
crypt_set_pbkdf_type@@CRYPTSETUP_2.0 0.1
Top AVX512 functions by instruction count
Top AVX512 functions by value
File total (SSE): 652 instructions with score 313
File total (AVX2): 342 instructions with score 31
File total (AVX512): 0 instructions with score 0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.