Commit Graph

88 Commits

Author SHA1 Message Date
Michael Tremer
fdb587deca flash-images: Increase size of root partition to 1800 MB
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-05 12:11:35 +00:00
Arne Fitzenreiter
954ac9df04 flash-images: install u-boot for nanopi r2s on aarch64
rockchip has a large bootloader so this also increase the gap between partitiontable
and fist partition to 16MB on aarch64

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-03 07:42:41 +00:00
Michael Tremer
b8b36e969c grub cloud: Add kernel release to boot ID
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-08-01 13:25:03 +00:00
Michael Tremer
dd730a395b flash-image: Enable GRUB_FIRST_BOOT setting
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-08-01 13:24:46 +00: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
Arne Fitzenreiter
aafdd71b04 switch arm 32 bit arch from armv5tel to armv6l
we have no supported armv5tel board left so we can switch to the higher
arch. This now can use the vpu (still in softfp calling convention to
not break existing installations.)
this fix many compile problems, also boost is now working again.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-07-05 07:42:39 +02:00
Michael Tremer
613db5c199 flash-image: Increase root partition size to 1600MB
This is necessary due to the increased size of the base OS which is
mostly driven by linux-firmware.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-08 13:37:33 +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
Michael Tremer
70e7351c3e core-updates: Ensure we have no temporary data in the package
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-03-24 08:58:10 +00:00
Michael Tremer
7c62b3a587 cdrom+flash-image: Move all temporary files to /tmp
Since /tmp is now a ramdisk, we move all temporary files into it.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-03-21 16:03:09 +00:00
Arne Fitzenreiter
2b6b6df32a flash-images: update the uENV root UUID also on arch64
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-02-19 08:49:21 +00:00
Arne Fitzenreiter
6ede197501 pathon: update to 3.8 and move pyhton to core
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-01-11 14:35:11 +01:00
Arne Fitzenreiter
0894092e2c linux-firmware: update to 20191022
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-12-05 12:44:45 +01:00
Arne Fitzenreiter
e47e01f60c u-boot: enable boot from additional mmc device
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-08-04 13:43:44 +00:00
Michael Tremer
c4dd9dfc46 Revert "Generate a VHD image"
This reverts commit ee0e3beb39.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-07-01 07:54:19 +01:00
Michael Tremer
ee0e3beb39 Generate a VHD image
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-07-01 07:53:58 +01:00
Michael Tremer
4cf7c05dd8 flash-image: Align image to 1MB boundary
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-07-01 07:53:34 +01:00
Arne Fitzenreiter
9023689d73 flash-images: fix partition layout on i586
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2018-07-21 16:33:29 +02:00
Arne Fitzenreiter
46a4581db6 flash-image: use FAT for /boot partition on aarch64
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2018-07-20 12:24:49 +01:00
Michael Tremer
a5c92f50bf flash-images: Only install grub for EFI on aarch64
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:54 +01:00
Michael Tremer
f096a2ea98 flash-image+cdrom: Execute ARMv5-specific code on ARMv5
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:52 +01:00
Michael Tremer
b89c7379f9 flash-images: Make EFI partition 32MB
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:52 +01:00
Michael Tremer
89e79c50c7 flash-images: Cleanup partitioning code
No functional changes

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:52 +01:00
Michael Tremer
8662e98173 flash-images: Mark the /boot partition as bootable
Before, the ESP was marked as bootable which isn't necessary

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:52 +01:00
Michael Tremer
7d456c3971 flash-image: Use grub-install to install GRUB in EFI mode
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:51 +01:00
Michael Tremer
2f329aab27 flash-image: Mark the EFI system partition as such
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:51 +01:00
Michael Tremer
dfb0084e35 flash-image: Remove any other GRUB configuration files in EFI mode
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:51 +01:00
Michael Tremer
ba3cbb0cfb Adjust variables that have been renamed
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:50 +01:00
Michael Tremer
7fbbd2aebc Enable EFI on x86_64
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:49 +01:00
Michael Tremer
784cd5cbd7 Enhance the flash image to support EFI
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:49 +01:00
Michael Tremer
bd3bcb45d6 AWS: Import aws setup script
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-06-25 10:55:39 +01:00
Michael Tremer
1f2a90b552 flash-image: Make sure that GRUB boots the first entry
This is required when importing an image into AWS EC2 or
the import of the image fails.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-06-21 16:45:40 +01:00
Arne Fitzenreiter
779706b5f8 flash-image: increase boot partition to match with iso install
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2018-06-06 14:52:55 +02:00
Michael Tremer
a649b64547 flash-image: Install files for armv5tel only on armv5tel
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-05-31 12:09:26 +01:00
Michael Tremer
b302b9a695 Compress flash-images as XZ as well
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-05-21 20:59:06 +01:00
Arne Fitzenreiter
6b56624445 flash-images: merge normal and scon to one image.
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2018-04-12 16:36:31 +02:00
Arne Fitzenreiter
0a21d63f26 kernel: updated arm config and image build
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2018-03-25 11:41:20 +02: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
Arne Fitzenreiter
02c36af4ba linux-firmare: update to 5d98692
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2017-12-12 09:18:11 +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
Arne Fitzenreiter
025e1fe146 flash-images: remove wrong 2nd partition
the new sfdisk seems not able to skip a partition anymore.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2017-07-06 18:37:44 +02:00
Arne Fitzenreiter
f3e86ec56b flash-images: remove unsupported sfdisk switches
New util-linux sfdisk does not have -D and -H / -S
switches.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2017-07-06 08:32:13 +02:00
Michael Tremer
d5f3cc7ff2 flash-image: Increase size of root partition
This should still be small enough to barely fit on a disk that
can hold 1GB of data. The actual one. Not the one that some
vendors put on it.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-05-25 20:16:13 +01:00
Michael Tremer
dc7d6b204d make.sh: Cleanup of polluted environment
The build environment is using a number of variables which
occasionally conflicted with some other build systems.

This patch cleans that up by renaming some variables and
later unexporting them in the lfs files.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-05-18 12:02:03 +01:00
Alexander Marx
5021ee33de BUG11296: Fix build on EFI systems
fixes: #11296

Signed-off-by: Alexander Marx <alexander.marx@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-03-03 10:42:17 +00:00
Arne Fitzenreiter
4f472f86f8 flash-images: copy kernel and initrd first
there is a u-boot bug that not find all files if the directory entries
was splittet to more sectors so copy the important files first.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2016-03-05 17:07:23 +01:00
Arne Fitzenreiter
efd02229ae flash-images: change root uuid replacer sed
i cannot really test this on my systems.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2016-02-24 16:01:33 +01:00
Arne Fitzenreiter
920f195095 flash-image: set RAMDISK_MODE=2
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2016-02-23 20:08:25 +01:00
Arne Fitzenreiter
38956241bb flash-image: fix root uuid on some build machines.
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2016-02-23 19:49:49 +01:00
Justin Luth
e0b9a600e1 Allow flash-images to compile on Ubuntu: delay to allow automount/dismount 2015-03-28 12:59:35 +01:00