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
6ad6a1a9
Kaydet (Commit)
6ad6a1a9
authored
Nis 04, 2020
tarafından
Your Name
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
init fix
üst
b7d143ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
98-fsmount.sh
src/scripts/98-fsmount.sh
+13
-13
99-fsswitch.sh
src/scripts/99-fsswitch.sh
+1
-1
No files found.
src/scripts/98-fsmount.sh
Dosyayı görüntüle @
6ad6a1a9
...
...
@@ -2,9 +2,9 @@
common_boot
(){
debug
"Moving mountpoints"
mount
--move
/sys /rootfs/
kernel/
sys
mount
--move
/proc /rootfs/
kernel/
proc
mount
--move
/dev /rootfs/
kernel/
dev
mount
--move
/sys /rootfs/sys
mount
--move
/proc /rootfs/proc
mount
--move
/dev /rootfs/dev
mount
--move
/tmp /rootfs/tmp
mount
--move
/run /rootfs/run
}
...
...
@@ -44,10 +44,10 @@ normal_boot(){
mount
-t
tmpfs tmpfs /rootfs
mkdir
-p
/rootfs/tmp
mkdir
-p
/rootfs/run
debug
"Creating symlinks"
ln
-s
kernel/dev /rootfs/dev
ln
-s
kernel/sys /rootfs/sys
ln
-s
kernel/proc /rootfs/proc
mkdir
-p
/rootfs/dev
mkdir
-p
/rootfs/sys
mkdir
-p
/rootfs/proc
debug
"Creating binds"
for
i
in
boot bin lib32 etc kernel lib64 sbin usr data lib root var
do
debug
"Binding /
$i
"
...
...
@@ -57,10 +57,10 @@ normal_boot(){
common_boot
}
clasic_boot
(){
clas
s
ic_boot
(){
debug
"Mounting rootfs"
mkdir
-p
/rootfs
mount
-t
auto
$root
/
newroot
mount
-t
auto
$root
/
rootfs
common_boot
}
...
...
@@ -68,10 +68,10 @@ if [ "$boot" == "live" ]; then
msg
"Booting from live-media"
live_boot
fi
if
[
"
$boot
"
==
"classic"
]
;
then
msg
"Booting from
$root
(classic)"
clasic_boot
else
if
[
"
$boot
"
==
"normal"
]
;
then
msg
"Booting from
$root
"
normal_boot
else
msg
"Booting from
$root
(classic)"
classic_boot
fi
src/scripts/99-fsswitch.sh
Dosyayı görüntüle @
6ad6a1a9
...
...
@@ -7,7 +7,7 @@ fi
[
-d
"/new_root/
$subdir
"
]
||
subdir
=
"/"
debug
"Subdir=
$subdir
"
[
!
-n
$init
]
||
init
=
/sbin/init
[
"
$init
"
!=
""
]
||
init
=
/sbin/init
debug
"init=
$init
"
if
[
-f
/new_root/
$subdir
/etc/initrd.local
]
;
then
...
...
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