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
0807ecd8
Kaydet (Commit)
0807ecd8
authored
Agu 09, 2021
tarafından
root
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
live boot wont change rootfs. Bind rootfs and execute init
üst
9944b30e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
96-fsmount.sh
src/scripts/96-fsmount.sh
+1
-1
99-fsswitch.sh
src/scripts/99-fsswitch.sh
+19
-0
No files found.
src/scripts/96-fsmount.sh
Dosyayı görüntüle @
0807ecd8
...
...
@@ -26,7 +26,6 @@ overlay_mount(){
if
[
"
$overlay
"
==
"zram"
]
;
then
modprobe zram
num_devices
=
1 2>/dev/null
||
true
echo
$memtotal
>
/sys/block/zram0/disksize
sh
mkfs.ext2 /dev/zram0
mount
-t
auto /dev/zram0 /root/a
mount
-t
tmpfs
-o
size
=
100% none /root/b
...
...
@@ -138,6 +137,7 @@ normal_boot(){
common_boot
||
fallback_shell
}
classic_boot
(){
debug
"Mounting rootfs"
mkdir
-p
/rootfs
...
...
src/scripts/99-fsswitch.sh
Dosyayı görüntüle @
0807ecd8
...
...
@@ -13,6 +13,25 @@ if [ -f /rootfs/$subdir/etc/initrd.local ]; then
inf
"Running local initrd scripts"
.
/rootfs/
$subdir
/etc/initrd.local
||
true
fi
initrd_boot
(){
mv
busybox /bin/busybox
/bin/busybox
rm
-f
*
||
true
/bin/busybox
mv
/bin/busybox /busybox
rm
-rf
autorun scripts lib
||
true
for
i
in
boot lib32 etc kernel lib64 sbin usr data lib root var home opt srv bin
do
if
[
-d
/rootfs/
$subdir
/
$i
]
;
then
msg
"Binding"
"/
$i
"
mkdir
-p
/
$i
||
true
mount
--bind
/rootfs/
$subdir
/
$i
/
$i
||
true
fi
done
rm
-f
/busybox
exec env
-i
"TERM=
$TERM
"
"LANG=
$LANG
"
"LC_ALL=
$LANG
"
$init
"
$@
"
}
if
[
"
$boot
"
==
"live"
]
;
then
initrd_boot
fi
debug
"Switching root"
exec env
-i
\
"TERM=
$TERM
"
\
...
...
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