Slax specs for debian
parent
182d6449c1
commit
9c98f90992
|
|
@ -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
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
Each directory contains scripts for easier building of minimal OS installation,
|
||||||
|
also known as SLAX - Small Live Auxiliary linuX
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
@ -1,7 +1,4 @@
|
||||||
|
#!/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
|
|
||||||
|
|
||||||
rm -f /var/lib/apt/lists/deb.*
|
rm -f /var/lib/apt/lists/deb.*
|
||||||
rm -f /var/log/*
|
rm -f /var/log/*
|
||||||
|
|
@ -10,6 +7,9 @@ rm -f /var/log/*/*/*
|
||||||
rm -f /var/cache/apt/archives/*.deb
|
rm -f /var/cache/apt/archives/*.deb
|
||||||
rm -f /var/cache/apt/*.bin
|
rm -f /var/cache/apt/*.bin
|
||||||
rm -f /var/cache/debconf/*-old
|
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/doc/*
|
||||||
|
|
||||||
rm -Rf /usr/share/locale/??
|
rm -Rf /usr/share/locale/??
|
||||||
|
|
@ -19,13 +19,3 @@ rm -Rf /usr/share/locale/???
|
||||||
rm -Rf /usr/share/i18n/locales/*_*
|
rm -Rf /usr/share/i18n/locales/*_*
|
||||||
rm -Rf /usr/share/man/??
|
rm -Rf /usr/share/man/??
|
||||||
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
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
(cd rootcopy && cp --parents -afr * /)
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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
|
||||||
4
build
4
build
|
|
@ -83,5 +83,5 @@ rm -f "$TARGET/$LIVEKITNAME-$ARCH.zip"
|
||||||
zip -0 -r "$TARGET/$LIVEKITNAME-$ARCH.zip" *
|
zip -0 -r "$TARGET/$LIVEKITNAME-$ARCH.zip" *
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
rm -Rf "$LIVEKITDATA"
|
#rm -Rf "$LIVEKITDATA"
|
||||||
echo "finished. Find your result in $TARGET"
|
echo "finished. Find your results in $TARGET"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue