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
faf97278
Kaydet (Commit)
faf97278
authored
Şub 12, 2020
tarafından
Clement Lefebvre
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Few more fixes
üst
88711b11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
installer.py
usr/lib/live-installer/installer.py
+12
-12
No files found.
usr/lib/live-installer/installer.py
Dosyayı görüntüle @
faf97278
...
...
@@ -412,19 +412,19 @@ class InstallerEngine:
if
self
.
setup
.
automated
:
if
self
.
setup
.
lvm
:
# Don't use UUIDs with LVM
fstab
.
write
(
"
%
s / ext4 defaults 0 1"
%
self
.
auto_root_partition
)
fstab
.
write
(
"
%
s none swap sw 0 0"
%
self
.
auto_swap_partition
)
fstab
.
write
(
"
%
s / ext4 defaults 0 1
\n
"
%
self
.
auto_root_partition
)
fstab
.
write
(
"
%
s none swap sw 0 0
\n
"
%
self
.
auto_swap_partition
)
else
:
fstab
.
write
(
"#
%
s"
%
self
.
auto_root_partition
)
fstab
.
write
(
"
%
s / ext4 defaults 0 1"
%
self
.
get_blkid
(
self
.
auto_root_partition
))
fstab
.
write
(
"#
%
s"
%
self
.
auto_swap_partition
)
fstab
.
write
(
"
%
s none swap sw 0 0"
%
self
.
get_blkid
(
self
.
auto_swap_partition
))
fstab
.
write
(
"#
%
s
\n
"
%
self
.
auto_root_partition
)
fstab
.
write
(
"
%
s / ext4 defaults 0 1
\n
"
%
self
.
get_blkid
(
self
.
auto_root_partition
))
fstab
.
write
(
"#
%
s
\n
"
%
self
.
auto_swap_partition
)
fstab
.
write
(
"
%
s none swap sw 0 0
\n
"
%
self
.
get_blkid
(
self
.
auto_swap_partition
))
if
(
self
.
auto_boot_partition
is
not
None
):
fstab
.
write
(
"#
%
s"
%
self
.
auto_boot_partition
)
fstab
.
write
(
"
%
s /boot ext4 defaults 0 1"
%
self
.
get_blkid
(
self
.
auto_boot_partition
))
fstab
.
write
(
"#
%
s
\n
"
%
self
.
auto_boot_partition
)
fstab
.
write
(
"
%
s /boot ext4 defaults 0 1
\n
"
%
self
.
get_blkid
(
self
.
auto_boot_partition
))
if
(
self
.
auto_efi_partition
is
not
None
):
fstab
.
write
(
"#
%
s"
%
self
.
auto_efi_partition
)
fstab
.
write
(
"
%
s /boot/efi vfat defaults 0 1"
%
self
.
get_blkid
(
self
.
auto_efi_partition
))
fstab
.
write
(
"#
%
s
\n
"
%
self
.
auto_efi_partition
)
fstab
.
write
(
"
%
s /boot/efi vfat defaults 0 1
\n
"
%
self
.
get_blkid
(
self
.
auto_efi_partition
))
else
:
for
partition
in
self
.
setup
.
partitions
:
if
(
partition
.
mount_as
is
not
None
and
partition
.
mount_as
!=
""
and
partition
.
mount_as
!=
"None"
):
...
...
@@ -469,7 +469,7 @@ class InstallerEngine:
os
.
system
(
"grep -v swap /target/etc/fstab > /target/etc/mtab"
)
if
self
.
setup
.
luks
:
os
.
system
(
"echo
\"
lvmlmde
%
s none luks,tries=3
\"
>> /etc/crypttab"
%
self
.
auto_root_physical_partition
)
os
.
system
(
"echo
'lvmlmde
%
s none luks,tries=3'
>> /etc/crypttab"
%
self
.
auto_root_physical_partition
)
def
finish_installation
(
self
):
# Steps:
...
...
@@ -606,7 +606,7 @@ class InstallerEngine:
self
.
do_run_in_chroot
(
"echo dm-crypt >> /etc/initramfs-tools/modules"
)
self
.
do_run_in_chroot
(
"echo dm-mod >> /etc/initramfs-tools/modules"
)
self
.
do_run_in_chroot
(
"echo xts >> /etc/initramfs-tools/modules"
)
self
.
do_run_in_chroot
(
"echo 'GRUB_CMDLINE_LINUX=
\"
cryptdevice=
%
s:lvml
ocal root=/dev/mapper/lvmlmde-root resume=/dev/mapper/lvmlmde-swap
\"
> /etc/default/grub.d/61_live-installer.cfg"
%
self
.
auto_root_physical_partition
)
self
.
do_run_in_chroot
(
"echo 'GRUB_CMDLINE_LINUX=
\"
cryptdevice=
%
s:lvml
mde root=/dev/mapper/lvmlmde-root resume=/dev/mapper/lvmlmde-swap
\"
'
> /etc/default/grub.d/61_live-installer.cfg"
%
self
.
auto_root_physical_partition
)
self
.
do_run_in_chroot
(
"echo
\"
power/disk = shutdown
\"
>> /etc/sysfs.d/local.conf"
)
# write MBR (grub)
...
...
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