Commit Graph

75 Commits

Author SHA1 Message Date
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
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
7a72c9405a utilite: New script 2020-07-21 22:32:15 -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
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
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
5b3d1d63cf most: Use dpkg -i not apt to reinstall.
Unfortunately apt doesn't seem to always reinstall, so
we use dpkg -i instead, since it doesn't attempt to download the files.
2019-05-15 14:27:28 -05:00
Steev Klimaszewski
933e120757 most: Add a couple more packages that don't seem to install properly to first boot install 2019-05-14 16:23:24 -05:00
Steev Klimaszewski
c52872fafc most: Reinstall ca-certificates on first boot for all arm (32bit) devices 2019-05-10 17:18:34 -05:00
Steev Klimaszewski
2b193e4994 all: Update smi-hack service to rebuild ca-certs 2019-05-07 12:59:11 -05:00
Steev Klimaszewski
d88d102fa8 misc: Fix the cross compiler path... 4-7 != 4.7 2019-04-30 05:27:16 -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
68691584dc misc: Update github->gitlab for cross compiler 2019-04-29 23:16:07 -05:00
Steev Klimaszewski
cb4f3bd613 all: Remove the systemd 239 install as its not needed since 241 fixes the issues with 240 2019-03-18 11:05:58 -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
Richard Nelson
68f67e9a9e Drop trailing whitespace on scripts. 2018-12-29 19:20:05 -06:00
Steev Klimaszewski
c6d42301e6 utilite: Update packages installed and add workaround for packages failing to download/install 2018-12-18 23:04:10 -06:00
Steev Klimaszewski
c19a58b929 most: Remove make modules_prepare
This was supposed to be done for convenience, however, in practice, the
image ends up getting amd64 binaries in the kernel sources, so it
doesn't work anyway.
2018-12-03 02:36:35 -06:00
Steev Klimaszewski
137dc91e36 all: iceweasel -> firefox-esr 2018-09-18 13:48:49 -05:00
Steev Klimaszewski
df7d20a7de all: Quote the basedir, maybe this will help with things 2018-07-12 02:51:33 -05:00
Steev Klimaszewski
eab2fc5825 utilite: grab the wiggle script too since we want it on there 2018-07-12 00:31:04 -05:00
Steev Klimaszewski
a6862f68ec utilite: Fix the path for the bootscript 2018-07-11 23:55:26 -05:00
Steev Klimaszewski
d055770998 utilite: Use correct cross compiler, add in the fs resizer and regenerate ssh keys on first boot 2018-07-11 23:28:59 -05:00
Steev Klimaszewski
30f600b44d all: Install apt-utils into the images 2018-07-07 21:45:15 -05:00
Steev Klimaszewski
061a725548 all: latest scripts 2018-07-06 18:03:37 -05:00
Steev Klimaszewski
9c5a5c7c83 More cleanup across the scripts 2018-06-30 17:03:58 -05:00
Steev Klimaszewski
f2f2e07fda Custom hostname action 2018-06-28 19:51:42 -05:00
Steev Klimaszewski
39bd84a783 Everyone get on the random machine name train 2018-06-28 18:25:05 -05:00
Steev Klimaszewski
8df66aa7b8 Update rpi2 and formatting changes.
While we don't release an rpi2 specific build, there are still people
out there that build their own because they don't want to use Nexmon.
This updates the rpi2 script to keep up with the changes for the rpi3
while leaving out nexmon/rpi3 bluetooth bits.

Also update chmod because we don't need it.
2018-06-22 20:38:19 -05:00
Steev Klimaszewski
de9c520cdd Add root check to more scripts 2018-06-22 18:44:57 -05:00
Steev Klimaszewski
58a8a29559 Update apt commands
Update the apt command away from --force-yes which is deprecated and
will go away.
2018-06-19 19:53:27 -05:00
Steev Klimaszewski
05df89683b Add machine names to nspawn calls
Without adding machine names to the systemd-nspawn calls, if you attempt
to build 2 armhf images in parallel, it will fail claiming a machine of
the name kali-armhf already exists.  This should fix that issue.
2018-06-19 14:16:57 -05:00
Steev Klimaszewski
94ef46945c Finish moving the scripts to using systemd-nspawn
Using systemd-nspawn allows us to build the images in parallel without
worry of unmounting /dev screwing up and then the "cleanup" in the
script rm'ing /dev and leaving systems in a weird state requiring a
reboot.

However, since some people still use systems without systemd, we leave
the mount commands in the script (but commented out) so they can
uncomment and just :%s/systemd-nspawn/chroot/
2018-06-18 15:36:01 -05:00