Commit Graph

91 Commits

Author SHA1 Message Date
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
bbeafeae8a odroid-c2: Fixup image name 2021-09-05 17:57:51 -05:00
Steev Klimaszewski
b264fa5bba odroidc2: port to runonce 2021-08-30 15:08:12 -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
Steev Klimaszewski
59ea59c5c7 *: Update to latest changes
Move image file to the script directory instead of build directory
Add compression and filesystem type options
Limit cpu usage
2020-07-26 14:38:21 -05:00
Steev Klimaszewski
77ade53fed *: Various changes
Comment out deb-src, most end users aren't going to be building packages.
Latest image file creation changes from frangal.
A few misc cleanups of white space
2020-07-24 13:39:50 -05:00
Steev Klimaszewski
978165cc25 odroid-c2: Remove more }}... 2020-07-18 03:57:51 -05:00
Steev Klimaszewski
e062d5220d odroid-c2: Move xorg.conf cp into the third-stage 2020-07-18 01:21:07 -05:00
Steev Klimaszewski
c4233d7cf7 some: Try to force current_dir before compression 2020-07-17 22:54:31 -05:00
Steev Klimaszewski
3057f09130 odroid-c2: Mirror 2020-07-17 22:24:56 -05:00
Steev Klimaszewski
136befb9c2 odroid-c2: Update to the latest script changes from frangal 2020-07-17 22:17:37 -05:00
Steev Klimaszewski
08b658f536 odroid-c2: Move -mainline to be the script 2020-06-29 13:59:55 -05:00
Steev Klimaszewski
9335dff537 most: Add fstab to all but the rpi scripts
Because we resize the filesystem on first boot on the rpis,
we need to figure out a way to write the UUID into fstab before
adding the support there as well.
2020-06-25 17:42:35 -05:00
Steev Klimaszewski
8b4385aa9b all: The great kld enabling 2020-06-17 15:09:54 -05:00
Steev Klimaszewski
78328395c8 some: Remove the du call as we don't care anymore
Now that we set the images to be ~14GB, we don't need to see if the
image is too large for 7GB.
2020-06-14 12:34:43 -05:00
Steev Klimaszewski
feafae91d7 odroid-c2: Bump initramfs versioning 2020-06-14 10:52:54 -05:00
Steev Klimaszewski
744056c01e all: Cleanups, and moving files around to make a bit more sense 2020-06-13 18:39:56 -05:00
Steev Klimaszewski
59e6705a79 *: Remove kali-linux-default on first boot
Unfortunately, it is simply too variable to tell how long it will take
to install, instead opt for the safer kali-tools-top10 for now, and
users can throw in kali-linux-default themselves if they like.
2020-05-11 09:58:41 -05:00
Steev Klimaszewski
0c0617d696 most: Set k-r before downloading k-l-d 2020-05-07 16:57:01 -05:00
Steev Klimaszewski
b163efda82 *: ext3 :( 2020-05-07 15:19:48 -05:00
Steev Klimaszewski
2647c42dfc most: Add the kali user to all the scripts 2020-05-07 15:17:10 -05:00
Steev Klimaszewski
35746626dc most: Add allow-hotplug eth0 to allow... 2020-05-01 15:51:07 -05:00
Steev Klimaszewski
951d0c83e3 *: Remove locales-all from install
Since we're going to be walking through a setup eventually, remove all
the locales to save around 300MB of space.
2020-04-30 16:32:34 -05:00
Steev Klimaszewski
baae1ce7a1 *: Add kali-linux-core so that various services are installed 2020-04-29 19:16:19 -05:00
Steev Klimaszewski
52e3065111 *: Update the scripts
All images are now ~14GB so a 16GB sdcard minimum is required.
Update the list of packages installed.
Attempt to install kali-linux-default on first boot... not sure how this is going to go, because systemd doesn't like things taking a long time. May have to move it to a script, but we'll test it out.
Add 2 new scripts, one for the NanoPi NEO Plus2 and the rpi0w that are "minimal" - no desktop system installed (basically the original scripts pre- package list updates.
2020-04-28 19:35:50 -05:00
Steev Klimaszewski
f9aae72bfa all: Force new configs during installation
We're never going to care about anything that is on the system during
the first build, so just force new configs in case it ever prompts
which causes the build server to error out the build.
2020-01-23 11:57:28 -06:00
Steev Klimaszewski
410ea4c580 all: Install debs via glob on first boot 2019-11-25 07:54:52 -06:00
Steev Klimaszewski
876d53693f all: Remove old packages that aren't used 2019-11-22 23:46:30 -06:00
Steev Klimaszewski
eb16d72bb5 odroidc2: Update to latest 3.16 kernel from vendor
Latest version is 3.16.72, and also required removing the TLG2300
driver.
2019-08-26 18:21:46 +00:00
Steev Klimaszewski
32166f6666 all: Reconfigure xfonts-base on first boot
Baracko reported ( https://bugs.kali.org/view.php?id=5581 ) that vnc connections
would fail to work until reconfiguring xfonts-base.

This also fixes issue #164 which is a replica of the bug listed above.
2019-07-09 13:16:46 -05:00
Steev Klimaszewski
780c324559 all: Move extras to be installed later
Due to extras pulling in the modifications to the plymouth config file,
we were getting prompted whether to overwrite it or not.  There is a
bug to fix plymouth but currently upstream needs help to work on it.
Work around it for now.
2019-06-17 02:00:54 -05:00
Steev Klimaszewski
3e847a42b6 most: Re-arrange service dependencies 2019-05-17 11:26:25 -05:00
Steev Klimaszewski
f5527e7aef arm64: Also install packages on the 64bit images
Turns out, they're also needed in 64bit, so we reinstall on first boot as well.
2019-05-16 11:09:57 -05:00
Steev Klimaszewski
2b193e4994 all: Update smi-hack service to rebuild ca-certs 2019-05-07 12:59:11 -05:00
Steev Klimaszewski
3430373597 odroidc2: Bump initrd generation to 3.16.65, the kernel version that is current 2019-04-30 05:19:44 -05:00
Steev Klimaszewski
2b29640ca3 odroidc2: Move the cleanup
Because older systemd requires qemu to be copied in
we have to leave it around until we're completely finished
in the chroot, so we move the cleanup to the end of the build process
2019-04-30 04:52:22 -05:00
Steev Klimaszewski
8833fc9475 bbb,c2,odroidw: Move from offsec github to steev's github 2019-04-30 00:15:41 -05:00
Steev Klimaszewski
1a340d50d3 most: make sure we copy in qemu static binary
Because the new build host is debian, we need to make sure that
the qemu binaries are copied in, systemd doesn't happen transparently yet.
Next Debian stable release should make this commit obsolete.

Also don't mkdir the usr/bin directory, we actually want it to error out
if it doesn't exist.
2019-04-29 23:30:19 -05:00
Steev Klimaszewski
973ab689f9 all: Downgrade systemd and add shared-mime-info hack, as well as misc cleanups
Disable 64bit options on most of the ext4 partitions, fix any /lib paths
to now be /usr/lib since /lib is just a symlink there (may have missed
some.)  Add in missing services to "a few" boards, so they now also
regenerate their ssh keys at first boot as well.
2019-02-12 17:56:53 -06:00
Steev Klimaszewski
72a5945f23 odroidc2: Bump image size to 7GB too. 2019-01-31 23:18:57 -06:00