Commit Graph

112 Commits

Author SHA1 Message Date
Arszilla
26a1736d0c Update and fix banana-pi.sh 2022-08-30 00:04:29 +03:00
Fran
ef8c6cca2b convert make_loop 2021-11-07 10:55:31 +01:00
Fran
8feeaddd23 basic network config 2021-11-06 15:45:57 +01:00
Fran
a7088adddc convert varius scripts mkfs_partitions 2021-11-06 14:00:40 +01:00
Fran
2e096c3d0f Fix name basedir change arch wich argument 2021-11-05 13:53:24 +01:00
Fran
ab8773c9fb duplicate line 2021-11-05 10:09:20 +01:00
Fran
247b0614f0 banana-pi.sh fstab convert 2021-11-04 15:09:41 +01:00
Ben Wilson
121a5dc3e4 Add missing links 2021-10-12 22:10:32 +01:00
g0t mi1k
0b9c8c059a Reduce the amount of duplicate code (base_image) 2021-10-12 20:56:41 +00:00
Ben Wilson
2c83e22ee8 Add done status 2021-09-28 00:00:33 +00:00
Ben Wilson
08c1e9a9f0 Add if 32-bit or 64-bit 2021-09-28 00:00:33 +00:00
Steev Klimaszewski
c70a040cae most: Install systemd-timesyncd
Most of the arm boards don't have a realtime clock, and if the time is too far out of sync, networking doesn't work.  systemd-timesyncd doesn't show the same issue so lets go ahead and install it in most of the images that weren't already doing so.
2021-09-26 12:36:07 -05:00
Steev Klimaszewski
56a1b31f25 all: python->python3 since it's 2021 and python2 is EOL 2021-09-26 08:09:20 -05:00
Steev Klimaszewski
6730195866 all: Remove download of ca-certificates package.
We don't use this anymore as we simply dpkg-reconfigure in the runonce scripts.  So lets save a bit of time from doing the download and space of storing a package that never gets used.
2021-09-26 08:02:25 -05:00
Steev Klimaszewski
206a4d64a8 banana*: Fix the extlinux.conf entries 2021-09-24 15:26:15 -05:00
Steev Klimaszewski
4fb9678a3d *: Enable ssh, ext4 filesystem default now. Use growpart for growing the partition.
We use growpart from the cloud-guest-utils package (actually from Canonical's repo on github), and this allows us to resize all of the filesystem without random dropping journals.
Tested on rpi0w, rpi4 (32bit and 64bit), pinebook, pinebook-pro, nanopi neoplus2, rpi2, odroid-c2.  So I am thinking it's in a spot to make it available everywhere.

Also, somehow enabling ssh was dropped, likely due to misreading the purpose of "enable-ssh" service, which is a feature parity thing from raspbian where you could drop a "ssh" or "ssh.txt" file on /boot and it would enable ssh.  We decided long ago however, to always eable ssh on the arm images.
2021-09-23 12:23:25 -05:00
Steev Klimaszewski
f43b13c73d banana*: Don't hardcode the root part in extlinux 2021-09-21 10:12:21 -05:00
Steev Klimaszewski
0728436f2a most: fstab updates
Make sure we fix up the fstab to point to the root partition UUID
*after* we create the partition, otherwise it will get an invalid entry.
2021-09-21 09:58:18 -05:00
Steev Klimaszewski
36e6eaf16f bananapi: Path to fbdev config was wrong 2021-09-20 10:19:33 -05:00
Steev Klimaszewski
f60909f57e bananapi: Fix ups for new paths 2021-09-20 06:07:38 -05:00
Ben Wilson
10dd646b37 Update EOF to all match 2021-09-19 20:03:59 +01:00
Ben Wilson
34c05d52c4 Merge branch 'master' into consistency
# Conflicts:
#	banana-pi.sh
#	banana-pro.sh
#	common.d/clean_system.sh
#	common.d/packages.sh
#	common.d/proxy_apt.sh
#	gateworks-newport.sh
#	gateworks-ventana.sh
#	nanopc-t.sh
#	nanopi-neo-plus2-minimal.sh
#	nanopi-neo-plus2.sh
#	odroid-c2.sh
#	odroid-xu3.sh
#	pinebook-pro.sh
#	pinebook.sh
#	rpi-64bit-minimal.sh
#	rpi-64bit.sh
#	rpi.sh
#	rpi0w-minimal.sh
#	rpi0w.sh
#	rpi1.sh
#	usb-armory-mkii.sh
2021-09-19 20:02:43 +01:00
Steev Klimaszewski
a370c71706 all: Remove the unused proxy_apt and setlocales 2021-09-19 13:26:19 -05:00
Ben Wilson
f7fc1856e9 Change image_dir location 2021-09-19 13:45:29 +01:00
Ben Wilson
07054205c4 Typos 2021-09-19 11:34:26 +01:00
Ben Wilson
6b3475c046 Few missed brackets 2021-09-19 10:59:35 +01:00
Ben Wilson
018fe965ee Add status out 2021-09-19 10:56:45 +01:00
Ben Wilson
e4fa270582 basedir -> base_dir \ imagename -> image_name 2021-09-19 10:11:39 +01:00
Fran
0ff3de4495 Include disable proxy, mirror restore and dns on clean_system script 2021-09-18 16:47:57 +00:00
Ben Wilson
228ccb1ce5 Merge branch 'master' into consistency
# Conflicts:
#	.gitignore
#	banana-pi.sh
#	banana-pro.sh
#	beaglebone-black.sh
#	chromebook-exynos.sh
#	chromebook-nyan.sh
#	common.d/builder.txt.example
#	common.d/compress_img.sh
#	common.d/variables.sh
#	cubieboard2.sh
#	cubietruck.sh
#	cubox-i4pro.sh
#	cubox.sh
#	gateworks-newport.sh
#	gateworks-ventana.sh
#	mini-x.sh
#	nanopc-t.sh
#	nanopi-neo-plus2-minimal.sh
#	nanopi-neo-plus2.sh
#	nanopi2.sh
#	odroid-c.sh
#	odroid-c2.sh
#	odroid-u2.sh
#	odroid-xu3.sh
#	pinebook-pro.sh
#	pinebook.sh
#	riotboard.sh
#	rpi-64bit-minimal.sh
#	rpi-64bit.sh
#	rpi.sh
#	rpi0w-minimal.sh
#	rpi0w-p4wnp1-aloa.sh
#	rpi0w-pitail.sh
#	rpi0w.sh
#	rpi1.sh
#	trimslice.sh
#	usb-armory-mki.sh
#	usb-armory-mkii.sh
#	utilite-pro.sh
2021-09-18 05:55:38 +01:00
Ben Wilson
bd9b443dc9 Clean up on break out 2021-09-17 16:47:51 +01:00
Ben Wilson
e9459d9fff Even more log 2021-09-17 16:47:19 +01:00
Ben Wilson
5357408b17 Add more log output and script consistencies 2021-09-17 16:02:12 +01:00
Steev Klimaszewski
b93bcc5007 all: Add buffer and byte flushing 2021-09-17 09:46:40 -05:00
Ben Wilson
ddde10ecee Add leading 0 on chmod 2021-09-17 10:42:05 +01:00
Ben Wilson
ab30b38f72 Fix dots and typos 2021-09-16 06:58:38 +01:00
Ben Wilson
fb4ed55917 Add links to kali-docs 2021-09-16 06:42:05 +01:00
Steev Klimaszewski
a2cd18e5ff *: Move to nameserver variable.
This breaks the un-converted scripts but that gives more reason to move them to the new way over the coming days.
2021-09-15 16:57:00 -05:00
Steev Klimaszewski
c01651bff9 all: don't inclue sources.list after we restore the mirror!
We were restoring the mirror to the defaults, but then we would include sources.list again, which then sets it back to what the build system is set up to use.  Obviously, we don't want to do that, so don't.
2021-09-07 13:43:29 -05:00
Steev Klimaszewski
660c338a91 bananapi: port to runonce 2021-08-30 15:08:26 -05:00
Son
a07975ddcb clean-system, mirror & suite replacement 2020-08-10 16:55:26 +02:00
Steev Klimaszewski
7a914bd31e *: Add NM pkla file so users can use NM when they SSH in
Not sure where the change came from, but the latest testing shows you can't
use e.g. nmtui or nmcli when sshing into an rpi.

Issue was reported by KoalaV2 on discord/gitlab.
2020-08-08 20:38:29 -05:00
Steev Klimaszewski
76eee35651 *: Introduce eatmydata changes 2020-08-02 00:14:21 -05:00
Steev Klimaszewski
232ee4137b *: Remove invoke-rc.d/policy-rc.d changes. 2020-08-01 23:22:26 -05:00
Steev Klimaszewski
f4c77ddd03 most: Spaces are hard.
Fix up my missing a space in the previous commit.
2020-07-27 19:56:25 -05:00
Fran Rodriguez
c3f672f8cb most: Latest changes
Recommend sudo usage instead of just saying run as root.
Attempt to download packages 3 times before giving up.
Change suite to kali-rolling if it isn't set to that.
Increase number of cpus used to compress if > 3 exist.
RPi3-64: Supress output during build that isn't needed in the logs.
RPi3-64: Limit to 2 jobs during build since we're build via emulation.
2020-07-27 18:47:11 -05:00
Steev Klimaszewski
7f6b02c248 Revert "*: Set suite to kali-rolling if it isn't."
This reverts commit b187225520.

Frangal has a better suggestion, so lets revert
2020-07-27 18:34:50 -05:00
Steev Klimaszewski
b187225520 *: Set suite to kali-rolling if it isn't.
We build the release images against kali-last-snapshot, but
we want users to update against kali-rolling so they get updates.
2020-07-27 17:35:08 -05:00
Fran Rodriguez
2bf67f92cf most: Fix partitioning variables and use shortform 2020-07-27 03:09:02 -05:00
Steev Klimaszewski
2454874249 *: More cleanups
Fix the cleanup to remove more files that are left behind by the build system
Don't hardcode ext3, use fstype so users can set their own.
2020-07-26 17:40:50 -05:00