Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
I
initrd
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
initrd
Commits
660d32c2
Kaydet (Commit)
660d32c2
authored
Nis 01, 2020
tarafından
Your Name
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
pabug fix
üst
c668fc99
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
functions.sh
src/functions.sh
+10
-8
02-modules.sh
src/scripts/02-modules.sh
+2
-1
No files found.
src/functions.sh
Dosyayı görüntüle @
660d32c2
...
...
@@ -7,23 +7,22 @@ generate_rootfs(){
/busybox
mkdir
/tmp
/busybox
mkdir
/run
/busybox
--install
-s
/bin
/busybox
mknod
/dev/misc/rtc0 c 254 0 2>/dev/null
/busybox mdev
-s
2>/dev/null
}
run_modules
(){
for
i
in
$(
ls
/scripts |
sort
)
do
debug
"Running
$i
"
.
/scripts/
$i
.
/scripts/
$i
||
fallback_shell
done
}
mount_handler
(){
msg
"Mount handler running"
/busybox mount
-t
devtmpfs dev /dev
-o
nosuid,noexec,nodev
||
true
/busybox mount
-t
proc proc /proc
-o
nosuid,noexec,nodev
||
true
/busybox mount
-t
sysfs sys /sys
-o
nosuid,noexec,nodev
||
true
/busybox mount
-t
tmpfs tmpfs /tmp
-o
nosuid,noexec,nodev
||
true
/busybox mount
-t
tmpfs tmpfs /run
-o
nosuid,noexec,nodev
||
true
/busybox mount
-t
devtmpfs dev /dev
||
true
/busybox mount
-t
proc proc /proc
||
true
/busybox mount
-t
sysfs sys /sys
||
true
/busybox mount
-t
tmpfs tmpfs /tmp
||
true
/busybox mount
-t
tmpfs tmpfs /run
||
true
if
[
-e
/sys/firmware/efi
]
;
then
msg
"UEFI mode detected."
mount
-t
efivarfs efivarfs /sys/firmware/efi/efivars
-o
nosuid,nodev,noexec
...
...
@@ -49,7 +48,10 @@ is_file_avaiable(){
fallback_shell
(){
warn
"Booting dead. Now you are in initial ramdisk."
/busybox setsid cttyhack /bin/sh
||
/busybox sh
while
true
do
/busybox setsid cttyhack /bin/sh
||
/busybox sh
done
}
detect_root
(){
msg
"Detecting real root"
...
...
src/scripts/02-modules.sh
Dosyayı görüntüle @
660d32c2
#!/busybox sh
debug
"Listing kernel modules"
find /lib/modules/ |
sed
"s/.*
\/
//g"
|
grep
"
\.
ko$"
|
sed
"s/.ko
$/
/g"
|
sed
"s/^/modprobe /g"
>
/load_modules.sh
msg
"Loading kernel modules"
sh /load_modules.sh 2> /dev/null |
cat
>
/dev/null
msg
"Loading kernel modules"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment