Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buster and 1.9.4 upgrade + bugfixes #2

Open
wants to merge 147 commits into
base: grassbian
Choose a base branch
from

Conversation

psporysz
Copy link

@psporysz psporysz commented Nov 13, 2019

I tried to use existing binary with following results:

Nov 12 09:02:59 raspberrypi S02greengrass[2408]: mkdir: cannot create directory ‘/greeng
Nov 12 09:02:59 raspberrypi S02greengrass[2408]: cp: failed to access '/greengrass/certs
Nov 12 09:02:59 raspberrypi S02greengrass[2408]: cp: cannot stat '/boot/config/*': No su

Then i've build it from sources but unfortunately the result was the same. Once i've sorted out wrong paths new thing has pop out:

Nov 12 10:06:56 raspberrypi S02greengrass[1963]: Found cgroup subsystem: pids
Nov 12 10:06:56 raspberrypi kernel: overlayfs: overlapping upperdir path
---
failed to create overlay fs for container nosysRootfs too many levels of symbolic links

I found this and this threads so decided to upgrade the pi-gen and Greengrass to working numbers.

Beside the above i've also reverted original pi-gen files to streamline future merges and have improved the documentation slightly.

I've replaced AWS certificate with recommended one which is probably sane default for newcomers who will try to use the service in AWS.

Hope all above makes sense :)

XECDesign and others added 30 commits April 17, 2018 13:33
Remove claws-mail, greenfoot, bluej, nodered & realvnc-vnc-server
christophehurpeau and others added 30 commits August 11, 2019 16:50
The example for enabling IR transmission in `/boot/config.txt` is still using the deprecated `lirc-rpi` overlay. 
The documentation in `/boot/overlays/README` indicates that this overlay has been deprecated in favor of `gpio-ir` / `gpio-ir-tx`.

This updates the actual config.txt to suggest `gpio-ir` instead of `lirc-rpi`.
Previously, fdisk was used by sending commands into its stdin, which is
not very robust (since it heavily relies on the interactive prompts
offered by fdisk as well as the default values it offers, which seem
prone to changing in future version).

It seems likely that in the past, fdisk was easier than parted since it
provides default values that make it easier to create adjacent
partitions, without precalculating all positions in the script. However
now that partitions are manually being aligned, all data must be
calculated anyway.

This commit changes the partition generation to use parted rather than
fdisk. For this, it rewrites various calculations and renames variables
to be easier to read as well. All values are now in number of bytes,
rather than mixing bytes and sectors.

This commit also makes makes sure that the boot partition and root
partition are always adjacent (previously the root partition was aligned
without also rounding the boot partition size, leaving some empty space
in between).

As a side effect of using parted, this also causes the "bootcode" part
of the MBR to be filled with some default x86 bootcode. This is totally
irrelevant for booting the Raspberry Pi, but it does prevent triggering
a bug in parted. When using parted to change the partition table (e.g.
when resizing the root partition on first boot by raspi-config's
init_resize.sh), the disk identifier would be changed due to this bug,
which would change the PARTUUID of all partitions. The init_resize.sh
script would work around this by updating the PARTUUID in e.g. fstab,
but that's fragile at best.  This commit prevents the bug from
triggering and keeps the disk identifier the same.

See https://debbugs.gnu.org/35714 for details about this parted bug.

This commit fixes RPi-Distro#284.
Check that realpath is present.  OS X doesn't have realpath.  The RPi builds on Docker for Mac if you increase the VM size. I am using 256G for my image.  See the Docker for Mac preferences.
This way merge process is quicker and less noise during direct
branch comparisons.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.