Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
T
teaiso
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ç
tearch-linux
teaiso
Commits
2653156c
Kaydet (Commit)
2653156c
authored
Tem 26, 2022
tarafından
aliriza
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
/profile added
üst
c5c09af7
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
1 deletion
+22
-1
creating-profile.rst
doc/creating-profile.rst
+3
-0
debian.sh
src/distro/debian.sh
+3
-0
fedora.sh
src/distro/fedora.sh
+3
-0
sulin.sh
src/distro/sulin.sh
+3
-0
ubuntu.sh
src/distro/ubuntu.sh
+1
-1
mkteaiso.py
src/mkteaiso.py
+9
-0
No files found.
doc/creating-profile.rst
Dosyayı görüntüle @
2653156c
...
...
@@ -20,9 +20,12 @@ Available Templates: **debian**, **archlinux**, **sulin**, **tearch**, **ubuntu*
├── airootfs
│ └── ...
├── grub.cfg
├── packages
│ └── ...
└── profile.yaml
* airootfs directory store files that will merge with rootfs.
* packages directory store package files that will install into rootfs.
* grub.cfg file is header of grub config. Teaiso scan kernel and automatically merge with this config.
* profile.yaml file is main configuration file. You can configure distribution settings with this file.
...
...
src/distro/debian.sh
Dosyayı görüntüle @
2653156c
...
...
@@ -43,6 +43,9 @@ populate_rootfs(){
install_packages
(){
run_in_chroot apt update
-yq
run_in_chroot apt
install
-yq
-o
Dpkg::Options::
=
"--force-confnew"
${
packages
[@]
}
if
[[
-f
"
$rootfs
"
/profile/packages
]]
;
then
run_in_chroot dpkg
-i
/profile/packages/
*
.deb
fi
}
make_pkglist
()
{
...
...
src/distro/fedora.sh
Dosyayı görüntüle @
2653156c
...
...
@@ -30,6 +30,9 @@ populate_rootfs(){
install_packages
(){
run_in_chroot dnf
install
-y
--nogpgcheck
${
packages
[@]
}
if
[[
-f
"
$rootfs
"
/profile/packages
]]
;
then
run_in_chroot rpm
-i
/profile/packages/
*
.rpm
fi
}
make_pkglist
()
{
...
...
src/distro/sulin.sh
Dosyayı görüntüle @
2653156c
...
...
@@ -16,6 +16,9 @@ populate_rootfs(){
install_packages
(){
run_in_chroot inary it
-y
${
packages
[@]
}
if
[[
-f
"
$rootfs
"
/profile/packages
]]
;
then
run_in_chroot inary it /profile/packages/
*
.inary
fi
}
make_pkglist
()
{
...
...
src/distro/ubuntu.sh
Dosyayı görüntüle @
2653156c
...
...
@@ -5,7 +5,7 @@ typeset -r create_rootfs
create_rootfs
(){
if
[[
"
$codename
"
==
"latest"
]]
;
then
codename
=
$(
curl
https://cdimage.ubuntu.com/daily-live/current/ |
grep
"desktop-amd64.iso"
|
head
-n
1 |
sed
"s/.*href=
\"
//g"
|
sed
"s/-.*//g"
)
codename
=
$(
wget
-O
-
https://cdimage.ubuntu.com/daily-live/current/ |
grep
"desktop-amd64.iso"
|
head
-n
1 |
sed
"s/.*href=
\"
//g"
|
sed
"s/-.*//g"
)
fi
if
!
run debootstrap
--arch
=
$(
get_arch
$arch
)
--no-check-gpg
--no-merged-usr
--exclude
=
usrmerge
--extractor
=
ar
"
$codename
"
"
$rootfs
"
"
$repository
"
;
then
cat
$rootfs
/debootstrap/debootstrap.log
...
...
src/mkteaiso.py
Dosyayı görüntüle @
2653156c
...
...
@@ -167,6 +167,10 @@ if settings.shared and os.path.isdir(settings.shared):
os
.
mkdir
(
"{}/teaiso"
.
format
(
settings
.
rootfs
))
run
(
"mount --bind '{}' '{}/teaiso'"
.
format
(
settings
.
shared
,
settings
.
rootfs
))
# Bind mount profile
os
.
mkdir
(
"{}/profile"
.
format
(
settings
.
rootfs
))
run
(
"mount --bind '{}' '{}/profile'"
.
format
(
settings
.
profile
,
settings
.
rootfs
))
if
Stage
()
.
get
()
<
2
:
distro
.
populate_rootfs
()
if
os
.
path
.
exists
(
settings
.
profile
+
"/"
+
common
.
get
(
"airootfs_directory_pre"
))
and
len
(
common
.
get
(
"airootfs_directory_pre"
))
>
0
:
...
...
@@ -237,6 +241,11 @@ if Stage().get() < 7:
if
settings
.
shared
and
os
.
path
.
isdir
(
settings
.
shared
):
run
(
"umount -lf '{}/teaiso'"
.
format
(
settings
.
rootfs
))
os
.
rmdir
(
"{}/teaiso"
.
format
(
settings
.
rootfs
))
# remove profile binding
run
(
"umount -lf '{}/profile'"
.
format
(
settings
.
rootfs
))
os
.
rmdir
(
"{}/profile"
.
format
(
settings
.
rootfs
))
Mount
.
unmount
(
settings
.
rootfs
)
# Set permissions if exists
...
...
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