Commit Graph

101 Commits

Author SHA1 Message Date
Arne Fitzenreiter
2c13fafb7f installer: add network phy kernel modules to rd
network for download the sources has not worked with some nic's
like realtek 8169 because the phy driver was missing.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-12-06 12:24:56 +00:00
Michael Tremer
ced15fdfaf installer: Bind-mount /sys/firmware/efi/efivars into chroot
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
2021-11-19 07:08:57 +01:00
Michael Tremer
27944cdc4a installer: Setup efivarfs when possible
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
2021-11-19 07:08:53 +01:00
Michael Tremer
5621b0ef0a cdrom: Compress file system image using Zstandard
This patch uses the new Zstandard algorithm to compress the file system
image on the ISO image. This comes with these advantages:

* Compression is about twice as fast than XZ with the parameters we have
  selected here
* We use a lot less memory during compression and can therefore utilise
  all processor cores of the build machines
* Decompression (when installing IPFire and when creating the
  flash-image) is substantically faster

The downside is that the generated ISO image is slighty larger (~10MiB)
which I am okay with as a trade-off for the points mentioned above.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-07-14 08:28:46 +00:00
Michael Tremer
646d6b0670 installer: Fix reading /proc/cmdline when launched by GRUB
The installer was reading the kernel command line and was looking for
certain values which configured the installer.

GRUB appended a trailing newline character which was not accounted for
and caused that the last parameter was not correctly compared to the
list of possible keys.

Fixes: #12656 - core 157: unattended installation don't work as expected on EFI
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-07-14 08:24:53 +00:00
Michael Tremer
b37678e922 Package extended attributes in distro.img and Core Updates
System capabilities are stored in extended file system attributes
which are by default not stored in tar balls.

This patch ensures that they are packaged and extracted.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-06 14:45:02 +00:00
Arne Fitzenreiter
5f34a67205 installer: update filecount
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-06-27 12:27:10 +02:00
Arne Fitzenreiter
fa8b3ea7d3 installer: fix grub.conf root uuid entry
grub-mkconfig has written the device name instead of uuid's
because the /dev/disk-by-uuid node of the new filesystem was missing
run "udevadm trigger" to create this nodes before install grub.

fixes: #12116

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-08-13 15:21:02 +02:00
Stéphane Pautrel
a45bfbf1c5 installer+setup: Update French translation
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-04-11 03:47:44 +01:00
Michael Tremer
5ea26096ca installer: Set the clock correctly when installing over network
If a system has a not very up to date clock, downloading files
over HTTPS is impossible.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-03-13 09:35:07 +00:00
Michael Tremer
58e840bd96 installer: Intialize part_boot_efi_idx
This variable was not initialized on systems where EFI was not
in use. Therefore the generated parted command line was not
valid and caused the installation to abort.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-12-11 20:43:24 +00:00
Arne Fitzenreiter
4d0b63baf6 installer: remove set of pmbr_boot on gpt partitions
this fix the efi boot on hdd's larger than 2TB and raid installations.

fixes: #11890

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2018-10-23 18:58:58 +02:00
Michael Tremer
366b40c740 setup: Don't write any mount errors over the GUI
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-08-23 11:17:23 +01:00
Michael Tremer
12034118dd installer: Run install-bootloader script instead of own code
This allows us to keep the GRUB installation routine in one
place only.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-20 12:03:10 +00:00
Michael Tremer
befc040497 Move update-bootloader script into installer
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-20 12:03:09 +00:00
Michael Tremer
e3a3af3c5d installer: Install GRUB in removable mode as well
This allows that a system will boot IPFire even when
no boot entry is configured in the EFI BIOS

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:53 +01:00
Michael Tremer
7dc7880dda installer: Always install EFI bootloader on x86_64 and aarch64
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:53 +01:00
Michael Tremer
8fbadfc7a3 installer: Create a flag that marks if EFI support is available
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:53 +01:00
Michael Tremer
92e782332c installer: Add support to install on EFI systems
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:52 +01:00
Michael Tremer
5fb499f13b installer: Detect if we are running in EFI mode
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:51 +01:00
Arne Fitzenreiter
3069380c41 installer: update number of files
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2018-06-19 11:11:08 +02:00
Michael Tremer
c577571e2a installer: Drop /var partition
Fixes #11735

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-05-22 20:07:59 +01:00
Michael Tremer
bea1884bd7 installer: Increase size of /boot to 128M
Fixes #11736

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-05-21 20:59:06 +01:00
Arne Fitzenreiter
ea9d53c822 inittab: change tty1 to console
this reduce the differences between tty and scon installations
and make it easier to switch between.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2018-03-24 13:26:32 +01:00
Michael Tremer
c061d66fca cdrom: Change format to XZ and compress in parallel
This allows us to use all processor cores to compress
the image faster.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-10-17 14:58:52 +01:00
Michael Tremer
fb76fc5144 installer: Fix detection if we have the correct ISO image mounted
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-10-12 15:50:31 +01:00
Michael Tremer
f754146b1e installer: Allow download of ISO images over HTTPS
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-10-12 15:32:21 +01:00
Michael Tremer
5e6fcc8844 Pull latest translations for installer & setup from Transifex
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-10-06 12:15:26 +01:00
Michael Tremer
5208ceedd9 installer: Force overwriting EXT4 FS
On 64 bit systems, the installation fails if a previous XFS FS
is detected on the partition an EXT4 FS should be formatted.

This does not happen on 32 bit systems.

Fixes: #11091

Reported-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Tested-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
2016-04-11 10:20:00 +01:00
Michael Tremer
aaf67a64c3 Update translations
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-11-23 13:42:08 +00:00
Michael Tremer
a74ade6d9a installer+setup: Update translations
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-11-21 14:27:04 +00:00
Michael Tremer
ca6be40f92 Update translations 2015-04-04 13:17:34 +02:00
Arne Fitzenreiter
e0d006cd8e installer: add option to disable grafic mode for grub.
add novga to kernel commandline for the installer to add
GFXMODE="none" to /etc/default/grub.
2015-03-30 20:28:54 +02:00
Michael Tremer
53103ab55c installer: Don't accept the license in unattended mode 2015-03-16 16:10:03 +01:00
Michael Tremer
2bf7ee4bdd installer+setup: Update translations 2015-03-05 22:12:38 +01:00
Michael Tremer
29afd40851 installer: Cut off disk description if it gets too long 2015-02-26 13:54:07 +01:00
Michael Tremer
5ae2227566 installer+setup: Automatically update language lists 2015-02-04 13:31:36 +01:00
Michael Tremer
976a7b26bf installer+setup: Update translations 2015-02-01 12:57:05 +01:00
Michael Tremer
f8cdaa1084 installer: Fix selection English as default language 2015-01-22 23:09:43 +01:00
Michael Tremer
7db3e17a4a installer: Fix crash with small screen resolutions
The installer is showing a help line at the bottom of the
screen which is in some languages rather long. If it is
longer than the width of the screen, the installer used to
crash which is now fixed in this patch.
2015-01-02 14:41:33 +01:00
Michael Tremer
66c684fa60 Change default font to that what we use in IPFire 3 2014-12-26 18:00:51 +01:00
Michael Tremer
8cc7ba9020 installer: Update translations 2014-12-26 17:31:37 +01:00
Michael Tremer
b097fdd66f installer: Improve changing language at runtime 2014-12-24 00:33:30 +01:00
Michael Tremer
c5a5b13e8e installer: Power off instead of reboot after unattended install 2014-11-16 11:37:47 +01:00
Michael Tremer
a046e8a6ab installer: Only drop to a debug shell after a segmentation fault 2014-11-14 00:03:23 +01:00
Michael Tremer
ade96ba8a5 installer: Fix umounting destination 2014-11-13 23:58:05 +01:00
Michael Tremer
bb75bc3b14 installer: Improve check for serial console option 2014-11-05 23:43:01 +01:00
Michael Tremer
3e1145e1a0 installer: Fix download of the ISO image 2014-11-05 01:34:27 +01:00
Michael Tremer
69749af100 installer: Don't try to install /etc/hosts which does not exist 2014-11-05 01:33:59 +01:00
Michael Tremer
6a91a5a724 installer: Show better helpline in unattended mode 2014-11-05 01:33:29 +01:00