Develop #15

Merged
maximstewart merged 4 commits from develop into master 2020-05-04 02:51:55 +00:00
6 changed files with 14 additions and 13 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
src/work/* src/work/*
src/image/* src/image/*
*.iso

View File

@ -27,7 +27,7 @@ RELEASE="focal"
# $ARCH is the target processor architecture. # $ARCH is the target processor architecture.
# For old 32 bit x86 systems use i386. # For old 32 bit x86 systems use i386.
# For newer 64-bit x86 systems (also known as x64, x86_64, Intel 64, and AMD64) use amd64. # For newer 64-bit x86 systems (also known as x64, x86_64, Intel 64, and AMD64) use amd64.
ARCH="amd64" ARCH=""
# the name of your distro and ISO # the name of your distro and ISO
OS_NAME="" OS_NAME=""

View File

@ -1,20 +1,15 @@
# If we installed software, be sure to run
rm /var/lib/dbus/machine-id
# Before exiting the chroot, remove the diversion:
# Earlier this guide asked you to make a backup copy of /sbin/initctl.
# If the following command does not restore this file, then restore from the backup copy you made.
apt-get update && apt-get upgrade apt-get update && apt-get upgrade
apt-get autoremove --purge -y apt-get autoremove --purge -y
apt-get autoclean -y apt-get autoclean -y
apt-get clean apt-get clean
rm /var/lib/dbus/machine-id
rm -rf /tmp/* rm -rf /tmp/*
rm /etc/resolv.conf rm /etc/resolv.conf
rm /sbin/initctl
rm -rf /usr/src/* # Should be OK to clean this.
dpkg-divert --rename --remove /sbin/initctl
# Remove old kernels # Remove old kernels
# dpkg -l 'linux-*' | sed '/^ii/!d;/hwe/d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt -y purge; update-grub # dpkg -l 'linux-*' | sed '/^ii/!d;/hwe/d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt -y purge; update-grub
rm /sbin/initctl
dpkg-divert --rename --remove /sbin/initctl

View File

@ -8,6 +8,7 @@
function main() { function main() {
sleep 2 # Used so we can see stub messages
clear; clear;
start_menu_mesage; start_menu_mesage;
read -p "--> : " ANSR read -p "--> : " ANSR
@ -58,7 +59,7 @@ function install_live_iso_dependencies() {
ubuntu-minimal ubuntu-standard ubuntu-minimal ubuntu-standard
# The generic kernel can baloon a system with just the above # The generic kernel can baloon a system with just the above
# from ~130MB to 485+MB. (With good compression of squashfs) # from ~130MB to 460+MB. (With good compression of squashfs and cleaning)
# Yet, we need A kernel in order to even boot stuff. # Yet, we need A kernel in order to even boot stuff.
# I need to look into a kind of menu for the user where they could chose one. # I need to look into a kind of menu for the user where they could chose one.
# For right now, we'll use this... # For right now, we'll use this...

View File

@ -1,3 +1,6 @@
# Find which directories are consuming a lot of space.
du -hd 1 <your path> # -h means human readable; -d is depth
## Removes all packages but the ones specified and its dependencies ## Removes all packages but the ones specified and its dependencies
# !~nubuntu-minimal # !~nubuntu-minimal
aptitude markauto '~i !~nlinux-image-generic !~nubuntu-minimal !~nubuntu-standard !~ncasper !~nlupin-casper !~naptitude !~napt-get !~napt' aptitude markauto '~i !~nlinux-image-generic !~nubuntu-minimal !~nubuntu-standard !~ncasper !~nlupin-casper !~naptitude !~napt-get !~napt'

View File

@ -9,7 +9,8 @@
function main() { function main() {
clear; clear;
if [[ $(sanity_check) -eq 1 ]]; then echo "\nExiting..."; return; fi sanity_check
if [[ $? -eq 1 ]]; then echo "\nExiting..."; return; fi
start_menu_mesage; start_menu_mesage;
read -p "--> : " ANSR read -p "--> : " ANSR