Updated readme make fil;e and fixed bug with NM perms when not existing

This commit is contained in:
2022-04-14 15:28:13 +02:00
parent 0daacb14b4
commit 9a3770d64c
3 changed files with 22 additions and 3 deletions

View File

@@ -47,8 +47,9 @@ clean_env: #Clear all caches and archives
sudo TargetArch=i386 lb clean --all sudo TargetArch=i386 lb clean --all
make -f Makefile.extra clean make -f Makefile.extra clean
rm -f config/hooks/normal/0899-install-dkms-drivers.chroot rm -f config/hooks/normal/0899-install-dkms-drivers.chroot
rm -f config/package-lists/extrautils.list.chroot
#Remove customization #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 rm -rf config/includes.chroot/opt/custom
clean_iso: #Removes genereated iso's clean_iso: #Removes genereated iso's

View File

@@ -2,6 +2,21 @@
Custom debian iso 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=<CustomizationName>`, 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=<CustomizationName>`
* To enable `ExtraUtils` or `DKMS` update add `enable_<Feature>` the build command
* To build all achetectures run `make build` or `make enable_<Feature> build`, for one add `_amd64` or `_i386`
## Original creator / Source ## Original creator / Source
nodiscc nodiscc
[Original project on Gitlab](https://gitlab.com/nodiscc/debian-live-config) [Original project on Gitlab](https://gitlab.com/nodiscc/debian-live-config)

View File

@@ -1,3 +1,6 @@
#!/bin/bash #!/bin/bash
#Set perrmissons for saved networks in NetworkManager #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 chmod 600 /etc/NetworkManager/system-connections/*.nmconnection
fi