diff --git a/Makefile b/Makefile index 14587a9..5aaf02c 100644 --- a/Makefile +++ b/Makefile @@ -47,8 +47,9 @@ clean_env: #Clear all caches and archives sudo TargetArch=i386 lb clean --all make -f Makefile.extra clean rm -f config/hooks/normal/0899-install-dkms-drivers.chroot + rm -f config/package-lists/extrautils.list.chroot #Remove customization - rm -f config/bootloaders/grub-pc/splash.png config/bootloaders/isolinux/splash.png config/includes.chroot/etc/NetworkManager/system-connections/Template.nmconnection + rm -f config/bootloaders/grub-pc/splash.png config/bootloaders/isolinux/splash.png config/includes.chroot/etc/NetworkManager/system-connections/Template.nmconnection config/hooks/normal/0091-Customization-remove-teminalAppMenu.hook.chroot rm -rf config/includes.chroot/opt/custom clean_iso: #Removes genereated iso's diff --git a/README.md b/README.md index 14e4abc..f748380 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,21 @@ Custom debian iso +## Customization documetaton +The 'Customization' folder is meant for branding, wifi settings and other small config changes, +a 'Customization' is added by putting it in the folder. +It is enabled with `make prep_buildenv Customization=`, if `Customization` option is not provided `Default` will be used +The `Default` can be used as an example/base for other customization packages + + +## Basic build steps +* Clone this repo +* Install required packages for building by running `make install_buildenv` +* If needed clone the customization to the `customization` folder +* Setup the enviroment by using `make prep_buildenv` or `make prep_buildenv Customization=` +* To enable `ExtraUtils` or `DKMS` update add `enable_` the build command +* To build all achetectures run `make build` or `make enable_ build`, for one add `_amd64` or `_i386` + ## Original creator / Source nodiscc [Original project on Gitlab](https://gitlab.com/nodiscc/debian-live-config) diff --git a/config/hooks/normal/0091-UpdateNetworkManagerPerms.chroot b/config/hooks/normal/0091-UpdateNetworkManagerPerms.chroot index b38548e..612bd61 100644 --- a/config/hooks/normal/0091-UpdateNetworkManagerPerms.chroot +++ b/config/hooks/normal/0091-UpdateNetworkManagerPerms.chroot @@ -1,3 +1,6 @@ #!/bin/bash -#Set perrmissons for saved networks in NetworkManager -chmod 600 /etc/NetworkManager/system-connections/*.nmconnection \ No newline at end of file +#Set perrmissons for saved networks in NetworkManager, if configs exist + +if ls /etc/NetworkManager/system-connections/*.nmconnection 1> /dev/null 2>&1 ; then + chmod 600 /etc/NetworkManager/system-connections/*.nmconnection +fi \ No newline at end of file