This ensures the /storage filesystem will have the correct options
(block size, inode_ratio etc) for the target partition size.
Signed-off-by: Matthias Reichl <hias@horus.com>
The settings addon no longer creates the trigger file that would activate
these functions. They're not necessary and we instead rely on RPi's
bootloader to do the right thing when presented with flash upgrade files.
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
For the SYSTEM copy to /dev always use /dev/SYSTEM as target name
to not deal with fancy path or filenames.
Thanks HiassofT for clearing it up for me why that is best.
As far as i can tell all the rest of init is fine with BOOT_IMAGE and
SYSTEM_IMAGE having slashes in there.
Just toram was broken.
Only create a logfile for the previous boot if persistent journal
is being used.
Also applies some changes for shellcheck warnings:
`...` to $(...)
Verifying variable is set ${var:?} before rm'ing
Useless use of cat
Command grouping when the commands redirect to the same file
Use of == in [...]
[ test1 -a test2 ] to [ test1 ] && [ test2 ]
Signed-off-by: Ian Leonard <antonlacon@gmail.com>