Commit graph

70 commits

Author SHA1 Message Date
Przemyslaw Sztoch
738996ea33 Better user path config and support for etworkd
add user path for configuration scan
check for NetworkManager/networkd
support for bullseye

(i.e. path: config/cli and files: packages, packages.remove)
2021-04-09 10:27:52 +02:00
Oleg
71dc41f0ba
add extlinux.conf (#2722)
* add extlinux.conf

* - make sure armbianEnv is not added - we don't need variables for NAME_KERNEL and NAME_INITRD. This is not going to change - also MAIN_CMDLINE could at least be renamed so its clear to belong to EXT configuration. Elsewhere this doesn't apply since we have boot scripts

Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2021-03-18 16:57:45 +01:00
Igor Pecovnik
cc19adfebd Build all optimisations 2021-03-15 01:58:33 +01:00
Jannis
c145303c7c
Increase number of inodes during FS creation (#2678) 2021-03-06 21:10:29 +01:00
Igor Pečovnik
2e594375a9
Improve cache and toolchain download (#2665)
* Improve cache and toolchain download

* Cleanup
2021-02-26 18:27:21 +01:00
Igor Pečovnik
3a74abe43d
Merge desktop branch (#2662)
Co-authored-by: Miouyouyou (Myy) <myy@miouyouyou.fr>
Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
Co-authored-by: Richard Neese <r.neese@gmail.com>
Co-authored-by: iav <iav@iav.lv>
Co-authored-by: lanefu <lanefu@users.noreply.github.com>
Co-authored-by: Werner <EvilOlaf@users.noreply.github.com>
Co-authored-by: Oleg <balbes-150@yandex.ru>
Co-authored-by: Lane Jennison <lane@lane-fu.com>
Co-authored-by: JMCC <jmcc1@gmx.com>
2021-02-24 18:19:09 +01:00
Igor Pecovnik
32f018471f Revert "Internal: improve rootfs cache creation"
This reverts commit 04f8d5049d.
2021-02-22 22:35:49 +01:00
Lukas Pirl
4e25b7257b
remove mount option "nodiratime" where "noatime" is given (#2645)
mount option "noatime" implies "nodiratime", see, e.g.:
https://github.com/torvalds/linux/blob/v5.11/fs/inode.c#L1807-L1808
2021-02-22 21:49:04 +01:00
Igor Pecovnik
04f8d5049d Internal: improve rootfs cache creation 2021-02-20 00:48:44 +01:00
Pander
e7a7dd9338
proposal purging residual packages (#2644)
* proposal purging residual packages

* Bugfix

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2021-02-20 00:44:26 +01:00
Igor Pecovnik
705bbd431b Bump rootfs cache - it was recreated
- tweak buil all images
- add more info to the error
2021-01-25 13:23:39 +01:00
Igor Pecovnik
e2d5c3abfc Backend - don't compress more then one image at once
Compressing consumes a lot of memory we don't have. This tweaks should help to build much more images at once.
2021-01-24 21:30:25 +01:00
Igor Pecovnik
928a8f25b9 Backend - directory created too deep 2020-12-24 11:51:53 +01:00
Igor Pecovnik
fdd305e52f Several backend fixes and improvemetens
Affected:

- repository old packages purging
- multiple image making
2020-12-23 18:19:30 +01:00
Igor Pecovnik
b10b0454a5 Set image compression levels to maximum
This feature is used mainly by us or other distributors. An internal function. Compression time and CPU usage for this process is significantly increased but the size of the daily batch was decreased from 80Gb -> 50Gb. Mitigate upload speed bottleneck.
2020-12-22 12:54:04 +01:00
Igor Pecovnik
7aabbb6628 Console setup which is not run on a console is skipped
Adding "--force" to conduct the operation
2020-12-11 00:30:25 +01:00
Igor Pecovnik
5b57712b38 Replace disabled errors with a warning
If any of the repository os out of sync, this breaks the compilation. Currently it doesn't do anything, now it throws out a warning.
2020-12-11 00:28:48 +01:00
Duncan Bellamy
4a689f8b89
change DEFAULT_BOOTSIZE to 256 for nand-sata-install and debootstrap.sh (#2437) 2020-12-10 21:17:13 +01:00
Igor Pecovnik
514b5f1535 Remove hardcoded user group 2020-12-03 01:37:45 +01:00
Igor Pečovnik
3ddd91de71
Add several small improvements for building all images (#2365)
* Add several improvements for build all images / kernels
* More small fixes
* Adjust version
2020-11-22 08:54:41 +01:00
Piotr Szczepanik
b8af894293
Fixed update-initramfs optimisation for ubuntu targets (#2348) 2020-11-15 15:45:22 +01:00
Igor Pečovnik
a78eaa5aaf
Improve creating images from repository (#2340)
* Few cosmetic changes and updated configs
* Improve repository install
* Update configs
* Adjust configs
2020-11-14 19:29:39 +01:00
Igor Pečovnik
694b2313dd
Cosmetical: exchange mv with rsync (#2329)
* Cosmetical: exchange mv with rsync

Also make build script output less chatty to console. Show SD and mount size % only.

* Leave output here
2020-11-11 19:25:51 +01:00
Piotr Szczepanik
961064ed23
Fix disable/enable initramfs-tools calls and package list updates 2020-11-07 15:25:39 +01:00
Piotr Szczepanik
f9642f3882
Disable multiple update-initramfs runs while building image (#2296) 2020-11-06 10:52:53 +01:00
iav
af7aa141c3
Add xfs filesystem for root creation (#2294) 2020-11-01 08:24:08 +01:00
Igor Pečovnik
1275f118e2
Change desktop cache name, add support for automated cached creation / switching (#2257) 2020-10-16 15:25:15 +02:00
Igor Pečovnik
448484f6d8
Change Ubuntu Eoan to Ubuntu Groovy and enable it as CSC (#2254)
* Change Ubuntu Eoan to Ubuntu Groovy and enable it as CSC

Tested CLI and desktop image, but needs cache creation and repository before it will be possible to build without error.

* Update Groovy compiler for chroot

* Adjust pkg dependencies for groovy

Sadly htop doesn't build
2020-10-14 22:50:11 +02:00
iav
599dd2a8cb
Don't delete /boot/armbianEnv.txt file at least for meson64 (#2252)
* Don't delete /boot/armbianEnv.txt file at least for meson64
fix for #2249 ODroid-N2 armbian-config-->hardware menu not work

* Update meson.txt

* Update boot-odroid-n2.ini

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2020-10-13 20:34:45 +02:00
iav
04292b06c8
replace apt with apt-get (#2214)
* replace apt with apt-get
APT is not meant to be used in scripts: https://manpages.debian.org/stretch/apt/apt.8.en.html#SCRIPT_USAGE_AND_DIFFERENCES_FROM_OTHER_APT_TOOLS

* Add apt-get to desktop too

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2020-09-22 19:04:10 +02:00
iav
ad3f403246
set Btrfs compression creation time only (#2169)
* set default btrfs compression at image creation to zlib according to
https://github.com/armbian/build/pull/2163#issuecomment-683444245

* never set compression in /etc/fstab for btrfs root

* adjust comment
2020-08-31 16:31:15 +02:00
iav
0db07f6137
respect BTRFS_COMPRESSION parameter (#2163) 2020-08-28 18:44:37 +02:00
Igor Pecovnik
3a5b572c0f Improve multithreaded building, few changes for BUILD_ALL and removing debug code from MOTD 2020-08-18 22:31:07 +02:00
Igor Pečovnik
6ff4813b60
Reverint Shelcheck on this file ... not able to find all errors in a decent time. (#2067) 2020-06-25 20:19:37 +02:00
Manuel Rüger
4555a7aed5
Shellcheck fix4 (#2061)
* compilation.sh: Lint with shellcheck

* configuration.sh: Lint with shellcheck

* debootstrap.sh: Lint via shellcheck

* Update configuration.sh

* Update compilation.sh

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2020-06-25 11:07:24 +02:00
The-going
c29fff8590
Revert "Fix file encoding of the locale generator (#2000)" (#2044)
This (bugfix) is needed on Debian to suppress
multiple locales warnings ... Buster is affected

This reverts commit 069afc183a.
2020-06-20 21:23:57 +02:00
Igor Pečovnik
ca67855553
Add GPT partition table support (#2015)
* Add GPT parition table support               Leave unchanged / mbr by default since GPT doesn't works everywhere.

* Accept ROOTFS_PARTITION_TABLE as a parameter

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

* Change variable name

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

* Update README.md
2020-06-14 23:03:58 +02:00
The-going
069afc183a
Fix file encoding of the locale generator (#2000)
This is a minimal fix for the correct display
of characters in the applications, especially the console.

For example, if the locale-gen command is only for one locale
locale-gen ru_RU.UTF-8
Then the console application MC instead of a line in the frame outputs:

@
@@@@@@@@@@@@@@@@@@
@   README.md
@@@@@@@@@@@@@@@@@@
@
@

Setting variables to LC_ALL=C LANG=C is not necessary in this construction.
The line with the editor is not needed.
The 'locale-gen en_US.UTF-8 xx_XX.UTF-8' command
will fix this file itself.
2020-06-10 18:38:10 +02:00
Werner
72e9782493
Revert "Implement a possible workaround for initird corruption (#2004)" (#2005)
This reverts commit a1a20f4572.
2020-06-03 23:30:43 +02:00
Igor Pečovnik
a1a20f4572
Implement a possible workaround for initird corruption (#2004)
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-06-02 16:40:41 +02:00
Igor Pečovnik
0832201958
Rework of image signing. (#1995)
* Rework of image signing. We compress the image first, then signing and shaing that.

Based on @belfastraven work https://github.com/belfastraven/build/blob/pre-new-doc/lib/debootstrap.sh

* Uncompressed images can be removed

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-05-28 15:52:44 +02:00
zciendor
a0d6f21ac7
various minor fixes (#1993)
* fix permisson denied error happening in line 79

`mktemp` creates files with `-rw-------` (on Ubuntu bionic at least), which causes `line 79` to throw a permission denied error if the file isn't world readable.

* fixes umount error caused by single quotes

* force metadata duplication for btrfs root

Without this change metadata duplication is automatically turned off for `mkfs.btrfs` when the **build system** has a SSD drive.
However, since Armbian image is most likely flashed to a SD card afterwards, the drive type of the build host system should not be the deciding factor.
Metadata duplication is a good idea (better reliability) to have on a SD card.

From `man mkfs.btrfs`:
```
-m|--metadata <profile>
           Specify the profile for the metadata block groups. Valid values are raid0, raid1, raid5, raid6, raid10, single or dup, (case does not matter).

           A single device filesystem will default to DUP, unless a SSD is detected. Then it will default to single.
```
2020-05-28 10:52:54 +02:00
Werner
f78591db5b
Fixes building on Linux Mint Tricia (Bionic based) (#1914)
* Replace apt with apt-get unless in chroot
* Improve support for Buster and Mint Debbie

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2020-04-25 21:25:05 +02:00
Przemysław Sztoch
d07647e5ce
Better logging for external userpatches path and generate a lot of empty folders only once (#1897)
* Better logging for external userpatches path.
* Genrate a lot of empty folders only once
* Better handling for COMPRESS_OUTPUTIMAGE
2020-04-20 08:39:29 +02:00
Igor Pecovnik
207548cb8f
Improve RAW image compressing routines
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-04-12 22:28:37 +02:00
Igor Pečovnik
dd50c432f8
Bugfix - fixed wrong fs cache creation when forcing creation (#1869) 2020-04-05 14:05:10 +02:00
Igor Pecovnik
b607b666b3
Improve XZ compression support
Cleanup after upload, download scripts also supports this format

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-04-04 21:04:34 +02:00
Igor Pečovnik
874149e6ad
Add support for xz image compression format (#1868)
Our next default.
2020-04-04 18:29:42 +02:00
Igor Pečovnik
2b3997df53
When seeking for rootfs cache files it also checks previous version. This solves problem described in [AR-166] (#1790) 2020-02-09 10:25:41 +01:00
Igor Pečovnik
89a5a394ba
Add exceptions to support native Ubuntu 20.04 building (#1764)
* Add exceptions to support native Ubuntu 20.04 building, fix small bug related to SD card write verification.

* Improve first install steps by installing Dialog and lsb_release first. This left out since we moved host install after we choose what we will do ... dialog is essential for this. Second we don't wait properly for APT manager to finish the process. Fixed with this commit

* Suppress output

* Update OdroidXU4 dev config & patches
2020-02-02 10:31:30 +01:00