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
b7d143ad
Kaydet (Commit)
b7d143ad
authored
Nis 01, 2020
tarafından
Your Name
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix boot
üst
660d32c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
11 deletions
+9
-11
functions.sh
src/functions.sh
+3
-2
init.sh
src/init.sh
+6
-9
No files found.
src/functions.sh
Dosyayı görüntüle @
b7d143ad
...
@@ -13,7 +13,7 @@ run_modules(){
...
@@ -13,7 +13,7 @@ run_modules(){
for
i
in
$(
ls
/scripts |
sort
)
for
i
in
$(
ls
/scripts |
sort
)
do
do
debug
"Running
$i
"
debug
"Running
$i
"
.
/scripts/
$i
||
fallback_shell
.
/scripts/
$i
||
true
done
done
}
}
mount_handler
(){
mount_handler
(){
...
@@ -47,10 +47,11 @@ is_file_avaiable(){
...
@@ -47,10 +47,11 @@ is_file_avaiable(){
}
}
fallback_shell
(){
fallback_shell
(){
warn
"Booting dead. Now you are in initial ramdisk."
while
true
while
true
do
do
warn
"Booting dead. Now you are in initial ramdisk."
/busybox setsid cttyhack /bin/sh
||
/busybox sh
/busybox setsid cttyhack /bin/sh
||
/busybox sh
clear
done
done
}
}
detect_root
(){
detect_root
(){
...
...
src/init.sh
Dosyayı görüntüle @
b7d143ad
#!/busybox ash
#!/busybox ash
.
/vars
.
/vars
.
/functions
.
/functions
generate_rootfs
||
fallback_shell
generate_rootfs
mount_handler
||
fallback_shell
mount_handler
parse_cmdline
||
fallback_shell
parse_cmdline
detect_root
||
fallback_shell
detect_root
run_modules
||
fallback_shell
run_modules
while
true
fallback_shell
do
/busybox
sleep
999
done
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