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
d2671ff5
Kaydet (Commit)
d2671ff5
authored
Haz 19, 2020
tarafından
sulincix
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
şişman initrd desteği
üst
8e7e5589
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
54 additions
and
40 deletions
+54
-40
default.txt
locale/helpmsg/default.txt
+15
-13
tr_TR.UTF-8.txt
locale/helpmsg/tr_TR.UTF-8.txt
+15
-13
00-modules.sh
src/addons/00-modules.sh
+13
-9
build-functions.sh
src/build-functions.sh
+6
-0
50-networking.sh
src/scripts/50-networking.sh
+4
-4
vars.sh
src/vars.sh
+1
-1
No files found.
locale/helpmsg/default.txt
Dosyayı görüntüle @
d2671ff5
Usage $(basename $0) [OPTIONS]
Targeting options list:
OUPTUP Target initrd file output location.
WORKDIR Working directory. Created by mktemp command.
KERNELVER Target kernel version. Default is current kernel.
MODDIR Target module director. Default is current module directory.
CONFIG Used config file location. Default is /etc/initrd.conf
OUPTUP
Target initrd file output location.
WORKDIR
Working directory. Created by mktemp command.
KERNELVER
Target kernel version. Default is current kernel.
MODDIR
Target module director. Default is current module directory.
CONFIG
Used config file location. Default is /etc/initrd.conf
General option list:
-d / --debug Print debug log.
-k / --keep Do not remove working directory after building.
-h / --help Print this message.
-n / --no-color Disable colorized output.
-c / --no-cpio Do not generate initrd image.
-f / --fallback Generate fallback initrd image.
-g / --no-glibc Do not install glibc module. (Disable dinamic library support.)
-s / --no-fsck Do not install fsck module.
-d / --debug Print debug log.
-k / --keep Do not remove working directory after building.
-h / --help Print this message.
-n / --no-color Disable colorized output.
-c / --no-cpio Do not generate initrd image.
-f / --fallback Generate fallback initrd image.
-g / --no-glibc Do not install glibc module. (Disable dinamic library support.)
-s / --no-fsck Do not install fsck module.
-u / --no-udev Do not install udev module.
-a / --all-module Include all kernel module (udev module needed)
locale/helpmsg/tr_TR.UTF-8.txt
Dosyayı görüntüle @
d2671ff5
Kullanım $(basename $0) [SEÇENEKLER]
Hedefleme seçenekleri listesi:
OUPTUP Hedef initrd dosyası çıktı yolu.
WORKDIR Çalışma dizini. mktepm tarafından oluşturulur.
KERNELVER Hedef çekirdek sürümü. Varsayılan şimdiki çekirdek.
MODDIR Hedef modül dizini. Varsayılan şimdiki modül dizini.
CONFIG Kullanılan ayar yolu. Varsayılan /etc/initrd.conf kullanılır.
OUPTUP
Hedef initrd dosyası çıktı yolu.
WORKDIR
Çalışma dizini. mktepm tarafından oluşturulur.
KERNELVER
Hedef çekirdek sürümü. Varsayılan şimdiki çekirdek.
MODDIR
Hedef modül dizini. Varsayılan şimdiki modül dizini.
CONFIG
Kullanılan ayar yolu. Varsayılan /etc/initrd.conf kullanılır.
Genel seçenekler listesi:
-d / --debug Hata ayıklama çıktısı yazdırır.
-k / --keep Derleme sonrası çalışma dizinini temizlemez.
-h / --help Bu mesajı yazdırır.
-n / --no-color Renkli çıktı özelliğini kapatır.
-c / --no-cpio Initrd dosyası oluşturmaz.
-f / --fallback Yedek initrd dosyası oluşturur.
-g / --no-glibc Glibc modülünü kapat. (dinamik ikili desteğini kapatır)
-s / --no-fsck Fsck modülünü kapatır.
-d / --debug Hata ayıklama çıktısı yazdırır.
-k / --keep Derleme sonrası çalışma dizinini temizlemez.
-h / --help Bu mesajı yazdırır.
-n / --no-color Renkli çıktı özelliğini kapatır.
-c / --no-cpio Initrd dosyası oluşturmaz.
-f / --fallback Yedek initrd dosyası oluşturur.
-g / --no-glibc Glibc modülünü kapatır. (dinamik ikili desteğini kapatır)
-s / --no-fsck Fsck modülünü kapatır.
-u / --no-udev Udev modülünü kapatır.
-a / --all-module Tüm modülleri içerir. (udev modülü gerektirir)
src/addons/00-modules.sh
Dosyayı görüntüle @
d2671ff5
...
...
@@ -7,13 +7,17 @@
debug
"Kernel Version"
"
${
KERNELVER
}
"
debug
"Module Directory"
"
${
MODDIR
}
"
mkdir
-p
${
WORKDIR
}
/
${
MODDIR
}
debug
"Install main modules"
cp
-prf
${
MODDIR
}
/kernel/
{
crypto,fs,lib
}
${
WORKDIR
}
/
${
MODDIR
}
debug
"Install drivers"
cp
-prf
${
MODDIR
}
/kernel/drivers/
{
block,ata,md,firewire
}
${
WORKDIR
}
/
${
MODDIR
}
cp
-prf
${
MODDIR
}
/kernel/drivers/
{
scsi,pcmcia,virtio
}
${
WORKDIR
}
/
${
MODDIR
}
cp
-prf
${
MODDIR
}
/kernel/drivers/usb/
{
host,storage
}
${
WORKDIR
}
/
${
MODDIR
}
if
[
"
$debug
"
!=
"true"
]
;
then
debug
"Remove debug drivers"
find
${
WORKDIR
}
/
${
MODDIR
}
|
grep
debug | xargs
rm
-rf
if
[
"
$allmodule
"
==
true
]
&&
[
"
$skipglibc
"
!=
"true"
]
&&
[
"
$skipudev
"
!=
"true"
]
;
then
cp
-prf
${
MODDIR
}
/
*
${
WORKDIR
}
/
${
MODDIR
}
else
debug
"Install main modules"
cp
-prf
${
MODDIR
}
/kernel/
{
crypto,fs,lib
}
${
WORKDIR
}
/
${
MODDIR
}
debug
"Install drivers"
cp
-prf
${
MODDIR
}
/kernel/drivers/
{
block,ata,md,firewire
}
${
WORKDIR
}
/
${
MODDIR
}
cp
-prf
${
MODDIR
}
/kernel/drivers/
{
scsi,pcmcia,virtio
}
${
WORKDIR
}
/
${
MODDIR
}
cp
-prf
${
MODDIR
}
/kernel/drivers/usb/
{
host,storage
}
${
WORKDIR
}
/
${
MODDIR
}
if
[
"
$debug
"
!=
"true"
]
;
then
debug
"Remove debug drivers"
find
${
WORKDIR
}
/
${
MODDIR
}
|
grep
debug | xargs
rm
-rf
fi
fi
src/build-functions.sh
Dosyayı görüntüle @
d2671ff5
...
...
@@ -22,6 +22,8 @@ parse_args(){
export
keepworkdir
=
false
export
skipglibc
=
false
export
skipfsck
=
false
export
skipudev
=
false
export
allmodule
=
false
export
LANGDIR
=
/lib/initrd/locale
for
i
in
$*
do
...
...
@@ -36,12 +38,16 @@ parse_args(){
skipglibc
=
true
elif
[
"
$i
"
==
"-s"
]
||
[
"
$i
"
==
"--no-fsck"
]
;
then
skipfsck
=
true
elif
[
"
$i
"
==
"-u"
]
||
[
"
$i
"
==
"--no-udev"
]
;
then
export
skipudev
=
true
elif
[
"
$i
"
==
"-n"
]
||
[
"
$i
"
==
"--no-color"
]
;
then
export
nocolor
=
true
elif
[
"
$i
"
==
"-c"
]
||
[
"
$i
"
==
"--no-cpio"
]
;
then
export
nocpio
=
true
elif
[
"
$i
"
==
"-f"
]
||
[
"
$i
"
==
"--fallback"
]
;
then
fallback
=
true
elif
[
"
$i
"
==
"-a"
]
||
[
"
$i
"
==
"--all-modules"
]
;
then
allmodule
=
true
else
export
$i
2>/dev/null
||
true
fi
...
...
src/scripts/50-networking.sh
Dosyayı görüntüle @
d2671ff5
#Thanks for mll: https://github.com/ivandavidov/minimal
msg
"Trying to connect network"
for
DEVICE
in
/sys/class/net/
*
;
do
inf
"Network device"
$DEVICE
ip
link set
${
DEVICE
##*/
}
up
||
true
[
${
DEVICE
##*/
}
!=
lo
]
&&
udhcpc
-b
-i
${
DEVICE
##*/
}
-s
/etc/05_rc.dhcp
||
true
for
DEVICE
in
/sys/class/net/
*
;
do
inf
"Network device"
$DEVICE
ip
link set
${
DEVICE
##*/
}
up
||
true
[
${
DEVICE
##*/
}
!=
lo
]
&&
udhcpc
-b
-i
${
DEVICE
##*/
}
-s
/etc/05_rc.dhcp
||
true
done
src/vars.sh
Dosyayı görüntüle @
d2671ff5
PATH
=
/bin
PATH
=
/bin
:/xbin
TERM
=
linux
LANGDIR
=
/locale
rootfstype
=
ext4
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