Commit Graph

49 Commits

Author SHA1 Message Date
Michael Tremer
ffdc6fbba8 Increase size of /boot to 512 MiB
Is XFS is being selected as file system, the minimum size requirement is
300 MiB. In order to keep it to a round number, this patch increases the
size of /boot to 512 MiB.

To keep all systems consistent, we will also do this on systems that are
being formatted using different file systems.

Fixes: #13077 - xfs cannot installed anymore because boot is to small
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-04-24 18:51:12 +00:00
Michael Tremer
2743dd7eba installer: Fix build against glibc 2.36
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-09-11 08:36:17 +00:00
Michael Tremer
06cb5c1bb7 installer: Increase size of /boot to 256 MiB
On some installations, we are running out of space on the /boot
partition due to growing sizes of the ramdisk and the kernel.

To accomodate for that and have room to grow in the future, we increase
the size of the partition to 256 MiB.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
2022-08-08 10:12:43 +00:00
Peter Müller
e404dab5e4 installer: Harden mount options of /boot partition
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-07-28 13:34:07 +00:00
Michael Tremer
e2617fc054 installer: Remove support for ReiserFS
https://lore.kernel.org/lkml/YhIwUEpymVzmytdp@casper.infradead.org/

ReiserFS is an old file system which has not been actively maintained in
the Linux kernel for a long time. It is potentially going to be removed
soon which is why we shouldn't encourage people to create new
installations with ReiserFS any more.

This patch removes support for ReiserFS from the installer.

We should keep it enabled in the kernel for as long as it is available,
but we will have to encourage users potentially to re-install on a
different file system.

Since ReiserFS isn't very popular any more, I don't think that there
will be many users left.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-03-10 10:43:03 +00:00
Michael Tremer
3f8e70f6b3 backup: Don't restore excluded files
Sometimes, we restore a backup that has been created earlier before
exclude files have been changed. To avoid overwriting those files, we
will consider the exlude list upon restore.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-03-07 18:51:20 +00:00
Arne Fitzenreiter
68a50dd12d installer: add partitions as installation source
This add compatiblity for rufus usb-keys that convert the
iso to fat or ntfs partition.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2022-01-16 13:46:36 +00:00
Michael Tremer
91588cb42a installer: Ignore umount errors when target doesn't exist
Some paths might not exist on some systems which caused the installer to
abort the installation. This patch makes the installer ignore this
condition.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-12-22 16:07:49 +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
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
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
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
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
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
29afd40851 installer: Cut off disk description if it gets too long 2015-02-26 13:54:07 +01:00
Michael Tremer
ade96ba8a5 installer: Fix umounting destination 2014-11-13 23:58:05 +01:00
Michael Tremer
a8fca24560 installer: Allow to disable creation of swap space on command line 2014-10-26 16:00:03 +01:00
Michael Tremer
335c5bd1cd installer: Fix loads of compiler warnings 2014-10-25 15:54:45 +02:00
Michael Tremer
c0511f3ab3 installer: Rework downloading ISO and allow using a custom URL 2014-10-25 14:56:23 +02:00
Michael Tremer
38c6822d3c installer: Make restoring the backup interactive 2014-10-15 23:38:05 +02:00
Michael Tremer
7d11428465 installer: Allow to start networking without ISO download 2014-10-12 14:30:51 +02:00
Michael Tremer
a3e135c8bd installer: Enable new partitioning code to be run in unattended mode
The first disk of the system will automatically be used and
a standard installation will be done. After that is done, the
system will reboot into the freshly installed system and execute
setup.
2014-10-11 18:59:31 +02:00
Michael Tremer
5be66d81b9 installer: use sysinfo() for memory detection 2014-09-04 20:10:55 +02:00
Michael Tremer
126d357084 installer: Fix off-by-one error in number search 2014-09-04 20:10:24 +02:00
Michael Tremer
a691d4b370 installer: Add p suffix to path for mmcblk0 devices, etc. 2014-09-04 10:59:34 +02:00
Michael Tremer
0c8b2d994e installer: Show name of block device in disk listing 2014-09-04 10:59:16 +02:00
Michael Tremer
ee43f517e8 installer: When there is only one disk, fix automatic selection 2014-08-21 20:30:42 +02:00
Michael Tremer
ee00d203d1 installer: Omit source drive by name 2014-08-21 16:57:02 +02:00
Michael Tremer
d78fffa049 installer: Destroy RAID superblocks on single disk installations 2014-08-21 16:43:45 +02:00
Michael Tremer
0e491487e9 installer: Fix access test after partitioning 2014-08-21 16:43:07 +02:00
Michael Tremer
ddd32a5cd3 installer: Make umounting more reliable 2014-08-20 21:16:25 +02:00
Michael Tremer
46b56e2030 libsmooth+install: Fix output redirection 2014-08-14 14:07:13 +02:00
Michael Tremer
d2fafe0316 installer: Try harder to stop pre-existing software raids. 2014-08-13 12:04:08 +02:00
Michael Tremer
e9cf574d50 installer: Mark the GRUB boot partition as bootable on GPT. 2014-08-12 15:17:29 +02:00
Michael Tremer
282ec35e9b installer: Flush all disk buffers after the installation has finished. 2014-08-12 15:15:52 +02:00
Michael Tremer
7b4790d3fc installer: Downgrade RAID metadata format to 1.0. 2014-08-12 15:14:45 +02:00
Michael Tremer
bee06cd410 installer: Change separator in disk description to dash. 2014-08-12 15:12:25 +02:00
Michael Tremer
d2f993a7dd installer: Wipe first bytes of partitions and disks before partitioning. 2014-08-12 14:57:23 +02:00
Michael Tremer
a8d8b5576c installer: Umount everything right away. 2014-08-12 14:47:32 +02:00
Michael Tremer
4c812463e4 installer: Improve formatting of disk vendors/models. 2014-07-30 23:14:17 +02:00
Michael Tremer
5315fae6b3 Move installer to its own directory. 2014-07-30 22:04:35 +02:00