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
ec0ae897
Kaydet (Commit)
ec0ae897
authored
Nis 05, 2020
tarafından
Your Name
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
freeze boot eklendi
üst
e34291af
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
97-fsmount.sh
src/scripts/97-fsmount.sh
+20
-1
No files found.
src/scripts/97-fsmount.sh
Dosyayı görüntüle @
ec0ae897
...
@@ -36,6 +36,22 @@ live_boot(){
...
@@ -36,6 +36,22 @@ live_boot(){
mount
-t
tmpfs
-o
size
=
100% none /root/b
mount
-t
tmpfs
-o
size
=
100% none /root/b
common_boot
||
fallback_shell
common_boot
||
fallback_shell
}
}
freeze_mount
(){
mkdir
-p
/root/a
# upper
mkdir
-p
/root/b
# workdir
mkdir
-p
/rootfs/
mkdir
-p
/source/
# lower
debug
"Mounting freeze media"
mount
-t
auto
$root
/source
umount /root/a 2>/dev/null
umount /root/b 2>/dev/null
debug
"Creating overlayfs"
mount
-t
overlay
-o
lowerdir
=
/source/,upperdir
=
/root/a/,workdir
=
/root/b overlay /rootfs
mount
-t
tmpfs
-o
size
=
100% none /root/a
mount
-t
tmpfs
-o
size
=
100% none /root/b
common_boot
||
fallback_shell
}
normal_boot
(){
normal_boot
(){
debug
"Mounting rootfs"
debug
"Mounting rootfs"
mkdir
-p
/rootfs
mkdir
-p
/rootfs
...
@@ -66,11 +82,14 @@ classic_boot(){
...
@@ -66,11 +82,14 @@ classic_boot(){
}
}
if
[
"
$boot
"
==
"live"
]
;
then
if
[
"
$boot
"
==
"live"
]
;
then
msg
"Booting from live-media"
msg
"Booting from live-media
(
$root
)
"
live_boot
||
fallback_shell
live_boot
||
fallback_shell
elif
[
"
$boot
"
==
"normal"
]
;
then
elif
[
"
$boot
"
==
"normal"
]
;
then
msg
"Booting from
$root
"
msg
"Booting from
$root
"
normal_boot
||
fallback_shell
normal_boot
||
fallback_shell
elif
[
"
$boot
"
==
"freeze"
]
;
then
msg
"Booting from
$root
(freeze)"
freeze_boot
||
fallback_shell
else
else
msg
"Booting from
$root
(classic)"
msg
"Booting from
$root
(classic)"
classic_boot
||
fallback_shell
classic_boot
||
fallback_shell
...
...
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