mirror of
				https://github.com/optim-enterprises-bv/secureblue.git
				synced 2025-10-31 18:37:47 +00:00 
			
		
		
		
	chore: deprecate images that are no longer needed
This commit is contained in:
		
							
								
								
									
										80
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										80
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							| @@ -22,25 +22,25 @@ jobs: | |||||||
|       matrix: |       matrix: | ||||||
|         recipe: |         recipe: | ||||||
|           # non-userns |           # non-userns | ||||||
|           # desktop |           # general | ||||||
|           - recipes/desktop/recipe-silverblue-main.yml |           - recipes/general/recipe-silverblue-main.yml | ||||||
|           - recipes/desktop/recipe-silverblue-nvidia.yml |           - recipes/general/recipe-silverblue-nvidia.yml | ||||||
|           - recipes/desktop/recipe-kinoite-main.yml |           - recipes/general/recipe-kinoite-main.yml | ||||||
|           - recipes/desktop/recipe-kinoite-nvidia.yml |           - recipes/general/recipe-kinoite-nvidia.yml | ||||||
|           - recipes/desktop/recipe-cinnamon-main.yml |           - recipes/general/recipe-cinnamon-main.yml | ||||||
|           - recipes/desktop/recipe-cinnamon-nvidia.yml |           - recipes/general/recipe-cinnamon-nvidia.yml | ||||||
|           - recipes/desktop/recipe-bluefin-main.yml |           - recipes/general/recipe-bluefin-main.yml | ||||||
|           - recipes/desktop/recipe-bluefin-nvidia.yml |           - recipes/general/recipe-bluefin-nvidia.yml | ||||||
|           - recipes/desktop/recipe-sericea-main.yml |           - recipes/general/recipe-sericea-main.yml | ||||||
|           - recipes/desktop/recipe-sericea-nvidia.yml |           - recipes/general/recipe-sericea-nvidia.yml | ||||||
|           - recipes/desktop/recipe-wayblue-wayfire-main.yml |           - recipes/general/recipe-wayblue-wayfire-main.yml | ||||||
|           - recipes/desktop/recipe-wayblue-wayfire-nvidia.yml |           - recipes/general/recipe-wayblue-wayfire-nvidia.yml | ||||||
|           - recipes/desktop/recipe-wayblue-hyprland-main.yml |           - recipes/general/recipe-wayblue-hyprland-main.yml | ||||||
|           - recipes/desktop/recipe-wayblue-hyprland-nvidia.yml |           - recipes/general/recipe-wayblue-hyprland-nvidia.yml | ||||||
|           - recipes/desktop/recipe-wayblue-river-main.yml |           - recipes/general/recipe-wayblue-river-main.yml | ||||||
|           - recipes/desktop/recipe-wayblue-river-nvidia.yml |           - recipes/general/recipe-wayblue-river-nvidia.yml | ||||||
|           - recipes/desktop/recipe-wayblue-sway-main.yml |           - recipes/general/recipe-wayblue-sway-main.yml | ||||||
|           - recipes/desktop/recipe-wayblue-sway-nvidia.yml |           - recipes/general/recipe-wayblue-sway-nvidia.yml | ||||||
|           # laptop |           # laptop | ||||||
|           - recipes/laptop/recipe-silverblue-main-laptop.yml |           - recipes/laptop/recipe-silverblue-main-laptop.yml | ||||||
|           - recipes/laptop/recipe-silverblue-nvidia-laptop.yml |           - recipes/laptop/recipe-silverblue-nvidia-laptop.yml | ||||||
| @@ -73,27 +73,27 @@ jobs: | |||||||
|           - recipes/server/recipe-server-main.yml |           - recipes/server/recipe-server-main.yml | ||||||
|           - recipes/server/recipe-server-nvidia.yml |           - recipes/server/recipe-server-nvidia.yml | ||||||
|           # userns |           # userns | ||||||
|           # desktop |           # general | ||||||
|           - recipes/desktop/recipe-silverblue-main-userns.yml |           - recipes/general/recipe-silverblue-main-userns.yml | ||||||
|           - recipes/desktop/recipe-silverblue-nvidia-userns.yml |           - recipes/general/recipe-silverblue-nvidia-userns.yml | ||||||
|           - recipes/desktop/recipe-kinoite-main-userns.yml |           - recipes/general/recipe-kinoite-main-userns.yml | ||||||
|           - recipes/desktop/recipe-kinoite-nvidia-userns.yml |           - recipes/general/recipe-kinoite-nvidia-userns.yml | ||||||
|           - recipes/desktop/recipe-cinnamon-main-userns.yml |           - recipes/general/recipe-cinnamon-main-userns.yml | ||||||
|           - recipes/desktop/recipe-cinnamon-nvidia-userns.yml |           - recipes/general/recipe-cinnamon-nvidia-userns.yml | ||||||
|           - recipes/desktop/recipe-bluefin-main-userns.yml |           - recipes/general/recipe-bluefin-main-userns.yml | ||||||
|           - recipes/desktop/recipe-bluefin-nvidia-userns.yml |           - recipes/general/recipe-bluefin-nvidia-userns.yml | ||||||
|           - recipes/desktop/recipe-bluefin-dx-main-userns.yml |           - recipes/general/recipe-bluefin-dx-main-userns.yml | ||||||
|           - recipes/desktop/recipe-bluefin-dx-nvidia-userns.yml |           - recipes/general/recipe-bluefin-dx-nvidia-userns.yml | ||||||
|           - recipes/desktop/recipe-sericea-main-userns.yml |           - recipes/general/recipe-sericea-main-userns.yml | ||||||
|           - recipes/desktop/recipe-sericea-nvidia-userns.yml |           - recipes/general/recipe-sericea-nvidia-userns.yml | ||||||
|           - recipes/desktop/recipe-wayblue-wayfire-main-userns.yml |           - recipes/general/recipe-wayblue-wayfire-main-userns.yml | ||||||
|           - recipes/desktop/recipe-wayblue-wayfire-nvidia-userns.yml |           - recipes/general/recipe-wayblue-wayfire-nvidia-userns.yml | ||||||
|           - recipes/desktop/recipe-wayblue-hyprland-main-userns.yml |           - recipes/general/recipe-wayblue-hyprland-main-userns.yml | ||||||
|           - recipes/desktop/recipe-wayblue-hyprland-nvidia-userns.yml |           - recipes/general/recipe-wayblue-hyprland-nvidia-userns.yml | ||||||
|           - recipes/desktop/recipe-wayblue-river-main-userns.yml |           - recipes/general/recipe-wayblue-river-main-userns.yml | ||||||
|           - recipes/desktop/recipe-wayblue-river-nvidia-userns.yml |           - recipes/general/recipe-wayblue-river-nvidia-userns.yml | ||||||
|           - recipes/desktop/recipe-wayblue-sway-main-userns.yml |           - recipes/general/recipe-wayblue-sway-main-userns.yml | ||||||
|           - recipes/desktop/recipe-wayblue-sway-nvidia-userns.yml |           - recipes/general/recipe-wayblue-sway-nvidia-userns.yml | ||||||
|           # laptop |           # laptop | ||||||
|           - recipes/laptop/recipe-silverblue-main-laptop-userns.yml |           - recipes/laptop/recipe-silverblue-main-laptop-userns.yml | ||||||
|           - recipes/laptop/recipe-silverblue-nvidia-laptop-userns.yml |           - recipes/laptop/recipe-silverblue-nvidia-laptop-userns.yml | ||||||
|   | |||||||
							
								
								
									
										67
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										67
									
								
								README.md
									
									
									
									
									
								
							| @@ -65,7 +65,7 @@ Have a look at [PREINSTALL-README](PREINSTALL-README.md) before proceeding. | |||||||
|  |  | ||||||
| #### Without User Namespaces <sup>[What's the difference?](USERNS.md)</sup> | #### Without User Namespaces <sup>[What's the difference?](USERNS.md)</sup> | ||||||
|  |  | ||||||
| ##### desktop | ##### general purpose | ||||||
| - kinoite-main-hardened | - kinoite-main-hardened | ||||||
| - kinoite-nvidia-hardened | - kinoite-nvidia-hardened | ||||||
| - cinnamon-main-hardened | - cinnamon-main-hardened | ||||||
| @@ -85,35 +85,11 @@ Have a look at [PREINSTALL-README](PREINSTALL-README.md) before proceeding. | |||||||
| - wayblue-sway-main-hardened | - wayblue-sway-main-hardened | ||||||
| - wayblue-sway-nvidia-hardened | - wayblue-sway-nvidia-hardened | ||||||
|  |  | ||||||
| ##### laptop <sup>[changes](./config/recipes/laptop/laptop-bling.yml)</sup> | ##### asus <sup>[docs](https://universal-blue.org/images/asus/)</sup> | ||||||
| - kinoite-main-laptop-hardened |  | ||||||
| - kinoite-nvidia-laptop-hardened |  | ||||||
| - cinnamon-main-laptop-hardened |  | ||||||
| - cinnamon-nvidia-laptop-hardened |  | ||||||
| - bluefin-main-laptop-hardened |  | ||||||
| - bluefin-nvidia-laptop-hardened |  | ||||||
| - silverblue-main-laptop-hardened |  | ||||||
| - silverblue-nvidia-laptop-hardened |  | ||||||
| - silverblue-asus-hardened | - silverblue-asus-hardened | ||||||
| - silverblue-asus-nvidia-hardened | - silverblue-asus-nvidia-hardened | ||||||
| - kinoite-asus-hardened | - kinoite-asus-hardened | ||||||
| - kinoite-asus-nvidia-hardened | - kinoite-asus-nvidia-hardened | ||||||
| - sericea-main-laptop-hardened |  | ||||||
| - sericea-nvidia-laptop-hardened |  | ||||||
| - wayblue-wayfire-main-laptop-hardened |  | ||||||
| - wayblue-wayfire-nvidia-laptop-hardened |  | ||||||
| - wayblue-hyprland-main-laptop-hardened |  | ||||||
| - wayblue-hyprland-nvidia-laptop-hardened |  | ||||||
| - wayblue-river-main-laptop-hardened |  | ||||||
| - wayblue-river-nvidia-laptop-hardened |  | ||||||
| - wayblue-sway-main-laptop-hardened |  | ||||||
| - wayblue-sway-nvidia-laptop-hardened |  | ||||||
|  |  | ||||||
| ###### framework <sup>[docs](https://universal-blue.org/images/framework/)</sup> |  | ||||||
| - kinoite-framework-hardened |  | ||||||
| - bluefin-framework-hardened |  | ||||||
| - silverblue-framework-hardened |  | ||||||
| - sericea-framework-hardened |  | ||||||
|  |  | ||||||
| ##### server | ##### server | ||||||
| - server-main-hardened | - server-main-hardened | ||||||
| @@ -121,7 +97,7 @@ Have a look at [PREINSTALL-README](PREINSTALL-README.md) before proceeding. | |||||||
|  |  | ||||||
| #### With User Namespaces <sup>[What's the difference?](USERNS.md)</sup> | #### With User Namespaces <sup>[What's the difference?](USERNS.md)</sup> | ||||||
|  |  | ||||||
| ##### desktop | ##### general purpose | ||||||
| - kinoite-main-userns-hardened | - kinoite-main-userns-hardened | ||||||
| - kinoite-nvidia-userns-hardened | - kinoite-nvidia-userns-hardened | ||||||
| - cinnamon-main-userns-hardened | - cinnamon-main-userns-hardened | ||||||
| @@ -143,38 +119,11 @@ Have a look at [PREINSTALL-README](PREINSTALL-README.md) before proceeding. | |||||||
| - wayblue-sway-main-userns-hardened | - wayblue-sway-main-userns-hardened | ||||||
| - wayblue-sway-nvidia-userns-hardened | - wayblue-sway-nvidia-userns-hardened | ||||||
|  |  | ||||||
| ##### laptop <sup>[changes](./config/recipes/laptop/laptop-bling.yml)</sup> | ##### asus <sup>[docs](https://universal-blue.org/images/asus/)</sup> | ||||||
| - kinoite-main-laptop-userns-hardened |  | ||||||
| - kinoite-nvidia-laptop-userns-hardened |  | ||||||
| - cinnamon-main-laptop-userns-hardened |  | ||||||
| - cinnamon-nvidia-laptop-userns-hardened |  | ||||||
| - bluefin-dx-main-laptop-userns-hardened |  | ||||||
| - bluefin-dx-nvidia-laptop-userns-hardened |  | ||||||
| - bluefin-main-laptop-userns-hardened |  | ||||||
| - bluefin-nvidia-laptop-userns-hardened |  | ||||||
| - silverblue-main-laptop-userns-hardened |  | ||||||
| - silverblue-nvidia-laptop-userns-hardened |  | ||||||
| - silverblue-asus-userns-hardened | - silverblue-asus-userns-hardened | ||||||
| - silverblue-asus-nvidia-userns-hardened | - silverblue-asus-nvidia-userns-hardened | ||||||
| - kinoite-asus-userns-hardened | - kinoite-asus-userns-hardened | ||||||
| - kinoite-asus-nvidia-userns-hardened | - kinoite-asus-nvidia-userns-hardened | ||||||
| - sericea-main-laptop-userns-hardened |  | ||||||
| - sericea-nvidia-laptop-userns-hardened |  | ||||||
| - wayblue-wayfire-main-laptop-userns-hardened |  | ||||||
| - wayblue-wayfire-nvidia-laptop-userns-hardened |  | ||||||
| - wayblue-hyprland-main-laptop-userns-hardened |  | ||||||
| - wayblue-hyprland-nvidia-laptop-userns-hardened |  | ||||||
| - wayblue-river-main-laptop-userns-hardened |  | ||||||
| - wayblue-river-nvidia-laptop-userns-hardened |  | ||||||
| - wayblue-sway-main-laptop-userns-hardened |  | ||||||
| - wayblue-sway-nvidia-laptop-userns-hardened |  | ||||||
|  |  | ||||||
| ###### framework <sup>[docs](https://universal-blue.org/images/framework/)</sup> |  | ||||||
| - kinoite-framework-userns-hardened |  | ||||||
| - bluefin-framework-userns-hardened |  | ||||||
| - bluefin-dx-framework-userns-hardened |  | ||||||
| - silverblue-framework-userns-hardened |  | ||||||
| - sericea-framework-userns-hardened |  | ||||||
|  |  | ||||||
| ##### server | ##### server | ||||||
| - server-main-userns-hardened | - server-main-userns-hardened | ||||||
| @@ -218,6 +167,14 @@ rpm-ostree kargs \ | |||||||
|     --append=nvidia-drm.modeset=1 |     --append=nvidia-drm.modeset=1 | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
|  | #### Nvidia optimus laptop | ||||||
|  | If you are using an nvidia image on an optimus laptop, run this after installation: | ||||||
|  |  | ||||||
|  | ``` | ||||||
|  | ujust configure-nvidia-optimus | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  |  | ||||||
| ## Contributing | ## Contributing | ||||||
|  |  | ||||||
| Follow the [contributing documentation](CONTRIBUTING.md#contributing), and make sure to respect the [CoC](CODE_OF_CONDUCT.md). | Follow the [contributing documentation](CONTRIBUTING.md#contributing), and make sure to respect the [CoC](CODE_OF_CONDUCT.md). | ||||||
|   | |||||||
							
								
								
									
										7
									
								
								config/files/usr/libexec/deprecated-images.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								config/files/usr/libexec/deprecated-images.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | { | ||||||
|  |     "imageTypes": [ | ||||||
|  |       "framework", | ||||||
|  |       "main-laptop", | ||||||
|  |       "nvidia-laptop" | ||||||
|  |     ] | ||||||
|  | } | ||||||
							
								
								
									
										18
									
								
								config/files/usr/libexec/deprecated-images.json.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								config/files/usr/libexec/deprecated-images.json.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | |||||||
|  | # Deprecated Images | ||||||
|  |  | ||||||
|  | The following image types have been deprecated: | ||||||
|  |  | ||||||
|  | ## framework | ||||||
|  |  | ||||||
|  | Rationale: [Deprecated upstream](https://github.com/ublue-os/framework#this-image-is-deprecated) | ||||||
|  | Rebase to: The equivalent image replacing `-framework` with `-main`. For example, for `kinoite-framework-hardened`, rebase to `kinoite-main-hardened`. | ||||||
|  |  | ||||||
|  | ## main-laptop | ||||||
|  |  | ||||||
|  | Rationale: Upstream recommendations have changed and improvements are being made to PPD.  | ||||||
|  | Rebase to: The equivalent image without `-laptop`. For example, for `kinoite-main-laptop-hardened`, rebase to `kinoite-main-hardened`. | ||||||
|  |  | ||||||
|  | ## nvidia-laptop | ||||||
|  |  | ||||||
|  | Rationale: Upstream recommendations have changed and improvements are being made to PPD. Additionally, nvidia optimus configuration has moved to upstream `just` commands. | ||||||
|  | Rebase to: The equivalent image without `-laptop`. For example, for `kinoite-nvidia-laptop-hardened`, rebase to `kinoite-nvidia-hardened` and reboot. Then, run `ujust configure-nvidia-optimus`. | ||||||
| @@ -13,13 +13,26 @@ IMAGE_DATE_SECONDS=$(date -d "$IMAGE_DATE" +%s) | |||||||
| CURRENT_SECONDS=$(date +%s) | CURRENT_SECONDS=$(date +%s) | ||||||
| DIFFERENCE=$((CURRENT_SECONDS - IMAGE_DATE_SECONDS)) | DIFFERENCE=$((CURRENT_SECONDS - IMAGE_DATE_SECONDS)) | ||||||
| MONTH=$((7 * 24 * 60 * 60)) | MONTH=$((7 * 24 * 60 * 60)) | ||||||
| if [ "$DIFFERENCE" -ge "$MONTH" ]; then |  | ||||||
|  | readarray -t imageTypes < <(jq -r '.imageTypes[]' deprecated-images.json) | ||||||
|  |  | ||||||
|  | isDeprecated=false | ||||||
|  | for imageType in "${imageTypes[@]}"; do | ||||||
|  |     if [[ "$IMAGE_REF_NAME" == *"$imageType"* ]]; then | ||||||
|  |         isDeprecated=true | ||||||
|  |         break | ||||||
|  |     fi | ||||||
|  | done | ||||||
|  |  | ||||||
|  | if $isDeprecated; then | ||||||
|  |     TIP='~~~ NOTICE: You are on a deprecated image, please rebase. ~~~\n~~~ For more information, visit https://github.com/secureblue/secureblue/blob/live/config/files/usr/libexec/deprecated-images.json.md ~~~' | ||||||
|  | elif [ "$DIFFERENCE" -ge "$MONTH" ]; then | ||||||
|     TIP='~~~ NOTICE: Your current image is over 1 week old, run `ujust update`. ~~~' |     TIP='~~~ NOTICE: Your current image is over 1 week old, run `ujust update`. ~~~' | ||||||
| else | else | ||||||
|     TIP='~~~ NOTICE: There is currently no notice. ~~~' |     TIP='~~~ NOTICE: There is currently no notice. ~~~' | ||||||
| fi | fi | ||||||
|  |  | ||||||
| TIP_OUTPUT=$(sed -e "s/%IMAGE_REF_NAME%/$IMAGE_REF_NAME/g" -e "s/%IMAGE_TAG%/$IMAGE_TAG/g" -e "s/%TIP%/$TIP/g" /usr/share/ublue-os/motd/secureblue.txt) | TIP_OUTPUT=$(sed -e "s/%IMAGE_REF_NAME%/$IMAGE_REF_NAME/g" -e "s/%IMAGE_TAG%/$IMAGE_TAG/g" -e "s#%TIP%#$TIP#g" /usr/share/ublue-os/motd/secureblue.txt) | ||||||
| while IFS= read -r line; do | while IFS= read -r line; do | ||||||
|     echo "$line" |     echo "$line" | ||||||
| done <<< $TIP_OUTPUT | done <<< $TIP_OUTPUT | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 qoijjj
					qoijjj