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
8e7e5589
Kaydet (Commit)
8e7e5589
authored
Haz 14, 2020
tarafından
sulincix
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
new glibc fixes
üst
94fe2498
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
2 deletions
+8
-2
00-modules.sh
src/addons/00-modules.sh
+1
-0
98-busybox.sh
src/addons/98-busybox.sh
+4
-1
build-functions.sh
src/build-functions.sh
+0
-1
96-fsmount.sh
src/scripts/96-fsmount.sh
+3
-0
No files found.
src/addons/00-modules.sh
Dosyayı görüntüle @
8e7e5589
#!/bin/bash
#!/bin/bash
[
!
-n
"
$KERNELVER
"
]
&&
KERNELVER
=
$(
uname
-r
)
[
!
-n
"
$KERNELVER
"
]
&&
KERNELVER
=
$(
uname
-r
)
[
!
-n
"
$MODDIR
"
]
&&
MODDIR
=
/lib/modules/
${
KERNELVER
}
[
!
-n
"
$MODDIR
"
]
&&
MODDIR
=
/lib/modules/
${
KERNELVER
}
[
!
-n
"
$OUTPUT
"
]
&&
OUTPUT
=
/boot/initrd.img-
${
KERNELVER
}
[
-d
$MODDIR
]
||
err
"Module directory not found"
"->
$MODDIR
"
[
-d
$MODDIR
]
||
err
"Module directory not found"
"->
$MODDIR
"
debug
"Kernel Version"
"
${
KERNELVER
}
"
debug
"Kernel Version"
"
${
KERNELVER
}
"
...
...
src/addons/98-busybox.sh
Dosyayı görüntüle @
8e7e5589
bb
=
$(
which busybox
)
bb
=
$(
which busybox
)
if
[
-f
"
$bb
"
]
;
then
if
[
-f
"
$bb
"
]
;
then
if
LANG
=
"C"
ldd
$bb
|
grep
"not a dynamic executable"
>
/dev/null
;
then
set
+e
bbdyn
=
$(
LANG
=
"C"
ldd
$bb
|
grep
"not a dynamic executable"
2>&1
)
if
[
$?
-ne
0
]
||
[
"
$bbdyn
"
!=
""
]
;
then
debug
"Install busybox"
"
$bb
"
debug
"Install busybox"
"
$bb
"
install
$bb
$WORKDIR
/busybox
>
/dev/null
install
$bb
$WORKDIR
/busybox
>
/dev/null
elif
[
"
$skipglibc
"
!=
"true"
]
;
then
elif
[
"
$skipglibc
"
!=
"true"
]
;
then
...
@@ -9,6 +11,7 @@ if [ -f "$bb" ] ; then
...
@@ -9,6 +11,7 @@ if [ -f "$bb" ] ; then
else
else
copy_binary busybox
copy_binary busybox
fi
fi
set
-e
else
else
err
"Busybox not found"
err
"Busybox not found"
exit
1
exit
1
...
...
src/build-functions.sh
Dosyayı görüntüle @
8e7e5589
...
@@ -18,7 +18,6 @@ get_module_with_dep(){
...
@@ -18,7 +18,6 @@ get_module_with_dep(){
parse_args
(){
parse_args
(){
export
src
=
/lib/initrd/
export
src
=
/lib/initrd/
export
WORKDIR
=
$(
mktemp
)
export
WORKDIR
=
$(
mktemp
)
export
OUTPUT
=
/boot/initrd.img-
$(
uname
-r
)
export
nocolor
=
false
export
nocolor
=
false
export
keepworkdir
=
false
export
keepworkdir
=
false
export
skipglibc
=
false
export
skipglibc
=
false
...
...
src/scripts/96-fsmount.sh
Dosyayı görüntüle @
8e7e5589
...
@@ -54,6 +54,9 @@ live_config(){
...
@@ -54,6 +54,9 @@ live_config(){
export
LANG
=
${
live_locale
}
export
LANG
=
${
live_locale
}
export
LC_ALL
=
${
live_locale
}
export
LC_ALL
=
${
live_locale
}
fi
fi
if
[
"
${
live_keymap
}
"
!=
""
]
;
then
echo
-e
"keymap=
\"
${
live_keymap
}
\"
"
>
/rootfs/
$subdir
/etc/conf.d/keymaps
fi
else
else
warn
"Live config cannot works without openrc"
warn
"Live config cannot works without openrc"
fi
fi
...
...
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