Slax specs for debian

This commit is contained in:
TomasM
2017-10-08 05:35:31 -04:00
parent 182d6449c1
commit 9c98f90992
10 changed files with 49 additions and 20 deletions
-4
View File
@@ -1,4 +0,0 @@
These files contain suggested commands used to setup given OS for minimal install
You should not run the files as scripts, it should be rather used as a guide
to let you know what to delete, what to run and how
+2
View File
@@ -0,0 +1,2 @@
Each directory contains scripts for easier building of minimal OS installation,
also known as SLAX - Small Live Auxiliary linuX
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
. ./install
. ./cleanup
. ./copy
# now run build script
cd ../../
./build
apt-get update
apt-get install aufs-dkms
# and re-setup initrd to include aufs
./initramfs/initramfs_create
+4 -14
View File
@@ -1,7 +1,4 @@
apt-get install mc squashfs-tools genisoimage zip
apt-get remove libicu* libperl* libxml2 mime-support perl \
perl-modules-5.24 sgml-base shared-mime-info xdg-user-dirs xml-core
#!/bin/bash
rm -f /var/lib/apt/lists/deb.*
rm -f /var/log/*
@@ -10,6 +7,9 @@ rm -f /var/log/*/*/*
rm -f /var/cache/apt/archives/*.deb
rm -f /var/cache/apt/*.bin
rm -f /var/cache/debconf/*-old
rm -f /var/lib/dhcp/dhclient.leases
rm -f /root/.bash_history
rm -f /root/.wget-hsts
rm -Rf /usr/share/doc/*
rm -Rf /usr/share/locale/??
@@ -19,13 +19,3 @@ rm -Rf /usr/share/locale/???
rm -Rf /usr/share/i18n/locales/*_*
rm -Rf /usr/share/man/??
rm -Rf /usr/share/man/*_*
# now run build script
cd ..
./build
apt-get install aufs-dkms
# and re-setup initrd to include aufs
./initramfs/initramfs_create
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
(cd rootcopy && cp --parents -afr * /)
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
apt-get install mc squashfs-tools genisoimage zip
apt-get remove libicu* libperl* libxml2 mime-support perl \
perl-modules-5.24 sgml-base shared-mime-info xdg-user-dirs xml-core
cp ../../tools/dir2sb /usr/bin
+1
View File
@@ -0,0 +1 @@
Slax-Debian
@@ -0,0 +1,13 @@
[Unit]
Description=DHCP Client
Documentation=man:dhclient(8)
Wants=network.target
Before=network.target
[Service]
Type=forking
PIDFile=/var/run/dhclient.pid
ExecStart=/sbin/dhclient
[Install]
WantedBy=multi-user.target
@@ -0,0 +1 @@
../dhclient.service
+2 -2
View File
@@ -83,5 +83,5 @@ rm -f "$TARGET/$LIVEKITNAME-$ARCH.zip"
rm -f "$TARGET/$LIVEKITNAME-$ARCH.zip"
zip -0 -r "$TARGET/$LIVEKITNAME-$ARCH.zip" *
cd ..
rm -Rf "$LIVEKITDATA"
cd ..
#rm -Rf "$LIVEKITDATA"