138 Commits

Author SHA1 Message Date
zciendor
ddf0ed1edf
Redo of implementation for feature request #947 on current master
This was already implemented with https://github.com/armbian/build/pull/948,
before but never made it into the master branch yet. Probably because the
development branch has been abandoned in the meantime and it is to much effort
now to merge it into master.

It includes all the cleanup changes from commit 08743d3 and has been successfully
tested on an Odroid HC1.

In addition to what is currently in the `luks` branch the following improvments
where done/added:

1. update_initramfs() function in debbootstrap-ng.sh, which needs to be invoked
   after the partition layout and /etc/crypttab was created. Else `cryptroot-unlock`
   won't work and you'll run into:
   https://serverfault.com/questions/907254/cryproot-unlock-with-dropbear-timeout-while-waiting-for-askpass

   Apart from that it might be useful to always run `update-initramfs` at the end
   of the build process anyway, in case customize_image (userpatches) made some
   changes to the initramfs tools configs.

2. CRYPTROOT_SSH_UNLOCK=yes/no config option. It's by default set to yes, but it
   might be desired by some users to disable enable SSH/dropbear access while
   still having LUKS support. E.g. if they have a device that has a display
   and keyboard.

3. If no `authorized_keys` file is provided via userpatches, a new SSH key pair
   is generated and for convenience copied to the output directory along with
   the final image.
2018-07-31 16:02:26 -05:00
Igor Pečovnik
e91fb953e2 Typo 2018-07-06 07:26:29 +00:00
Igor Pečovnik
92258e0298 Journal service logs adjustements/fix for Bionic. Moving it from /var/log to /run/log (memory). Use compression and some other limits. Need some testing. 2018-07-06 07:21:56 +00:00
Igor Pečovnik
fc07886a1d
Bsp services RFC (#1015)
* Basic armbian services RFC
- tested building and upgrade
- armbian-optimize-hardware and armbian-setup-hardware have still the same content

* fix permissions

* Forther renaming and small fixes

* Odroid C2 NEXT tiny config adjustement to remove errros from bootup and moving u-boot to 2018.05

* More cleanings

* permissions fix

* More cleanup ...

* permi

* Remove few Ubuntu related things, fix permissions

* Further mini improvements

* Fix logrotate compression and permission issues

* Bugfix

* Wrong services setup at package install. fixing

* RAM logging: workaround for older kernel/btrfs driver versions

* Renaming services, proper config for zram, few bugfixes.

* Various fixes

* Various fixes

* No $TMPFILE needed here

* Various fixes

* Lower this so boards with low memory can use it too

* Various fixes

* Adjust logfile to armbian-hardware-monitor.log

* Remove swap file creation

* Fix permissions in all logrotate configs if needed.

* Prevent loading parallel printer port drivers which we don't need here.
2018-06-16 19:41:16 +02:00
zador.blood.stained
eec99f4c3e Bugfix for resolvconf handling 2018-06-06 00:22:52 +03:00
zador-blood-stained
0b89533bf1 Fix resolvconf installation in chroot in some cases 2018-06-05 18:53:45 +03:00
Igor Pecovnik
746c33f42a This hack is not needed. Tested on all variants. 2018-06-04 09:45:50 +02:00
Igor Pečovnik
3dc3c7ec2f
DNS fix for Jessie 2018-05-31 20:35:22 +02:00
Igor Pecovnik
f3fcea2358 Stretch bugfix and Tinkerboard upstream patch 2018-05-29 16:50:30 +00:00
ThomasKaiser
1c9c7d4037 Temperature readout fix
And switching from Google to Cloudflare DNS everywhere
2018-05-28 23:27:11 -07:00
ThomasKaiser
7520ea8c54 Use Cloudflare DNS server for privacy reasons 2018-05-28 14:01:05 -07:00
Igor Pecovnik
5f6e743e24 When forcing network manager and having no resolvconf we have to use resolvd. Adding Google DNS to the resolved works ... until better implementation is figured out. 2018-05-28 17:16:11 +02:00
Igor Pecovnik
d1a9c8a768 Merging main libs into the stable. Hack for building Bionic on Xenial left out 2018-05-24 21:01:02 +02:00
Igor Pecovnik
3ff36b0649 Define ARCH within global environment variables 2018-01-26 10:54:55 +01:00
Igor Pecovnik
ce63cc6dbc Typo bugfix 2017-12-13 12:56:39 +01:00
Igor Pecovnik
67984f1078 Disable repeated messages due to xconsole not being installed and remove deprecated rsyslogd parameter
https://forum.armbian.com/topic/5907-rsyslogd-action-suspended-messages-in-varlogsyslog/
2017-12-13 12:15:11 +01:00
Igor Pecovnik
677fa5210d Hardening previous commit and adding more download options for Neo2 2017-11-05 19:32:33 +01:00
Igor Pecovnik
fc12ac1a8f Cosmetic fix for "[FAILED] Failed to start Set console font and keymap" at first boot 2017-11-05 18:13:12 +01:00
zador.blood.stained
b6ab198b43 Split and activate firstrun configuration service
The code was disabled some time ago, split it to a separate unit file
and reenable. Since configuration file needs to be renamed to activate
it, it won't be run by default.
2017-11-04 21:56:23 +03:00
zador-blood-stained
ddbe5dd322 Add DEFAULT_OVERLAYS variable 2017-11-01 13:16:21 +03:00
zador-blood-stained
5d7d05e2fd Small cleanup 2017-10-26 18:34:33 +03:00
zador-blood-stained
808462e1fd Add an option to install kernel sources to the image 2017-10-06 15:43:41 +03:00
zador-blood-stained
38db0b55f9 Add NM_IGNORE_DEVICES variable, drop NM config from mvebu64 2017-09-28 13:53:14 +03:00
zador-blood-stained
5b3285d374 Build utils separately for different releases (incl. Stretch) 2017-09-25 19:32:34 +03:00
zador-blood-stained
1fb6fcec99 Add install_deb_chroot helper function 2017-09-07 14:00:45 +03:00
zador-blood-stained
b77dcbcd71 Move asound.state files to packages/blobs 2017-09-02 18:04:43 +03:00
Igor Pecovnik
ce1dcf7146 Adding rc.local to Stretch - it might be useful to have it by default, few small desktop related fixes, removing hardware lirc conf for Stretch / sun7i only for now 2017-08-20 23:03:49 +02:00
zador-blood-stained
73dcf22219 Fix initrd generation on Stretch to include fs-specific fsck 2017-08-20 16:46:21 +03:00
zador-blood-stained
c3567743a0 Small cleanup 2017-08-06 17:11:16 +03:00
zador-blood-stained
f0e47d15a6 Small fixes 2017-08-06 16:52:43 +03:00
Igor Pecovnik
549d09b043 Move kernel heaers install under switch and to config example. Package can now be installed from armbian-config "with one click". 2017-08-06 14:45:13 +02:00
zador-blood-stained
3e91fdfbb2 Make the sshd root login regexp simpler 2017-08-02 14:11:59 +03:00
Igor Pecovnik
4495c8f7f2 Yet another missing package and removing doubled motd entry in stretch 2017-08-02 13:10:47 +02:00
Igor Pecovnik
a53bffae0c Bugfix - stretch has hash in front by default. 2017-08-02 12:55:49 +02:00
zador-blood-stained
a948e9855b Move and simplify some distribution specific tweaks 2017-08-01 16:01:12 +03:00
zador-blood-stained
a190eebf43 Update the build script github repo address
Remove shebangs from non-executable files
2017-08-01 12:51:10 +03:00
zador-blood-stained
1949c0b6da Move debootstrap and packaging directories to a temp directory
This avoids errors with filesystem features and permissions when output
directory is shared in Virtualbox (i.e. when using Vagrant)
2017-08-01 12:26:10 +03:00
zador-blood-stained
91be332f8a Refactor directory structure
Remove "parent of the project directory" setup
Closes #633
Closes #674
2017-08-01 12:24:56 +03:00