Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
L
live-installer
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
live-installer
Commits
816cb916
Kaydet (Commit)
816cb916
authored
Haz 24, 2020
tarafından
Your Name
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
minor fixes
üst
504523fa
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
29 additions
and
0 deletions
+29
-0
Makefile
Makefile
+4
-0
live-installer.sh
data/live-installer.sh
+1
-0
postinstall.sh
data/postinstall.sh
+5
-0
preinstall.sh
data/preinstall.sh
+2
-0
dialogs.cpython-37.pyc
live-installer/__pycache__/dialogs.cpython-37.pyc
+0
-0
installer.cpython-37.pyc
live-installer/__pycache__/installer.cpython-37.pyc
+0
-0
partitioning.cpython-37.pyc
live-installer/__pycache__/partitioning.cpython-37.pyc
+0
-0
timezones.cpython-37.pyc
live-installer/__pycache__/timezones.cpython-37.pyc
+0
-0
utils.cpython-37.pyc
live-installer/__pycache__/utils.cpython-37.pyc
+0
-0
installer.py
live-installer/installer.py
+17
-0
No files found.
Makefile
Dosyayı görüntüle @
816cb916
...
...
@@ -9,6 +9,10 @@ build:
cp
-prfv
live-installer build/usr/lib/
install
data/live-installer.sh build/usr/bin/live-installer
install
data/live-installer.desktop build/usr/share/applications/live-installer.desktop
mkdir
-p
build/usr/lib/live-installer/scripts
install
data/preinstall.sh build/usr/lib/live-installer/scripts/preinstall.sh
install
data/postinstall.sh build/usr/lib/live-installer/scripts/postinstall.sh
#set parmissions
chmod
755
-R
build
chown
root
-R
build
...
...
data/live-installer.sh
Dosyayı görüntüle @
816cb916
xhost +
pkexec sh
-c
"DISPLAY=
$DISPLAY
GTK_THEME=Adwaita python3 /usr/lib/live-installer/main.py"
data/postinstall.sh
0 → 100644
Dosyayı görüntüle @
816cb916
#!/bin/bash
#Post install script run in chroot
#Archlinux::
#cp /lib/modules/$(uname -r)/vmlinuz /boot/(uname -r)
#mkinitcpio -g /boot/initrd.img-(uname -r)
data/preinstall.sh
0 → 100644
Dosyayı görüntüle @
816cb916
#!/bin/bash
#Preinstall script run in live root
live-installer/__pycache__/dialogs.cpython-37.pyc
deleted
100644 → 0
Dosyayı görüntüle @
504523fa
File deleted
live-installer/__pycache__/installer.cpython-37.pyc
deleted
100644 → 0
Dosyayı görüntüle @
504523fa
File deleted
live-installer/__pycache__/partitioning.cpython-37.pyc
deleted
100644 → 0
Dosyayı görüntüle @
504523fa
File deleted
live-installer/__pycache__/timezones.cpython-37.pyc
deleted
100644 → 0
Dosyayı görüntüle @
504523fa
File deleted
live-installer/__pycache__/utils.cpython-37.pyc
deleted
100644 → 0
Dosyayı görüntüle @
504523fa
File deleted
live-installer/installer.py
Dosyayı görüntüle @
816cb916
...
...
@@ -60,6 +60,7 @@ class InstallerEngine:
self
.
mount_source
()
if
(
not
self
.
setup
.
skip_mount
):
if
self
.
setup
.
automated
:
self
.
create_partitions
()
...
...
@@ -67,6 +68,8 @@ class InstallerEngine:
self
.
format_partitions
()
self
.
mount_partitions
()
self
.
run_preinstall
()
# Transfer the files
SOURCE
=
"/source/"
DEST
=
"/target/"
...
...
@@ -112,6 +115,8 @@ class InstallerEngine:
os
.
system
(
"mv /target/etc/resolv.conf /target/etc/resolv.conf.bk"
)
os
.
system
(
"cp -f /etc/resolv.conf /target/etc/resolv.conf"
)
self
.
run_postinstall
()
# add new user
print
(
" --> Adding new user"
)
our_current
+=
1
...
...
@@ -475,6 +480,8 @@ class InstallerEngine:
newconsolefh
.
write
(
'EndSection
\n
'
)
newconsolefh
.
close
()
# write MBR (grub)
print
(
" --> Configuring Grub"
)
our_current
+=
1
...
...
@@ -574,6 +581,16 @@ class InstallerEngine:
def
exec_cmd
(
self
,
cmd
):
return
os
.
system
(
cmd
)
def
run_preinstall
(
self
):
os
.
system
(
"bash /usr/lib/live-installer/scripts/preinstall.sh"
)
def
run_postinstall
(
self
):
os
.
system
(
"cp /usr/lib/live-installer/scripts/postinstall.sh /target/tmp/script.sh"
)
os
.
system
(
"chroot /target /tmp/script.sh"
)
os
.
system
(
" rm -f /target/tmp/script"
)
# Represents the choices made by the user
...
...
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