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
94fe2498
Kaydet (Commit)
94fe2498
authored
Haz 08, 2020
tarafından
sulincix
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix live-config
üst
bd2fbbc0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
common.sh
src/common.sh
+2
-2
96-fsmount.sh
src/scripts/96-fsmount.sh
+11
-6
No files found.
src/common.sh
Dosyayı görüntüle @
94fe2498
...
...
@@ -12,9 +12,9 @@ fi
if
[
"
$LANG
"
==
""
]
;
then
if
[
-f
/proc/cmdline
]
;
then
LANG
=
$(
cat
/proc/cmdline |
sed
"s/ /
\n
/g"
|
grep
LANG |
sed
"s/^LANG=//g"
)
[
"
$LANG
"
==
""
]
&&
LANG
=
"
C
"
[
"
$LANG
"
==
""
]
&&
LANG
=
"
en_US.UTF-8
"
else
LANG
=
"
C
"
LANG
=
"
en_US.UTF-8
"
fi
fi
[
"
${
CPIO_COMPRESS
}
"
==
""
]
&&
CPIO_COMPRESS
=
cat
...
...
src/scripts/96-fsmount.sh
Dosyayı görüntüle @
94fe2498
...
...
@@ -37,14 +37,19 @@ overlay_mount(){
}
live_config
(){
if
[
-f
/rootfs/
$subdir
/sbin/openrc-run
]
;
then
if
[
"
${
live_user
}
"
!=
""
]
;
then
chroot
/rootfs/
$subdir
/ useradd
"
${
live_user
}
"
||
true
else
chroot
/rootfs/
$subdir
/ useradd
"sulin"
||
true
if
[
"
${
live_user
}
"
==
""
]
;
then
export
live_user
=
"user"
fi
if
[
"
${
live_
keyboard
}
"
!
=
""
]
;
then
e
cho
"keymap=
\"
${
live_keymap
}
\"
"
>
/rootfs/
$subdir
/etc/conf.d/keymaps
if
[
"
${
live_
pass
}
"
=
=
""
]
;
then
e
xport
live_pass
=
"live"
fi
if
[
"
${
live_hostname
}
"
==
""
]
;
then
export
live_hostname
=
"SulinOS"
fi
chroot
/rootfs/
$subdir
/ sh
-c
"useradd
${
live_user
}
"
||
true
chroot
/rootfs/
$subdir
/ sh
-c
"echo -ne
\"
${
live_pass
}
\\
n
${
live_pass
}
\\
n
\"
| passwd
${
live_user
}
"
||
true
chroot
/rootfs/
$subdir
/ sh
-c
"echo -ne
\"
${
live_pass
}
\\
n
${
live_pass
}
\\
n
\"
| passwd"
||
true
echo
${
live_hostname
}
>
/rootfs/
$subdir
/etc/hostname
if
[
"
${
live_locale
}
"
!=
""
]
;
then
export
LANG
=
${
live_locale
}
export
LC_ALL
=
${
live_locale
}
...
...
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