@@ -42,8 +42,14 @@ function rebase_helper() {
4242
4343 # Step 2: Channel Selection
4444 declare -a CHANNELS
45- CHANNELS=(latest stable stable-daily)
46- echo " Available channels: latest, stable (weekly builds), stable-daily (daily builds)"
45+ if [[ " $composefs_enabled " == " true" ]]; then
46+ CHANNELS=(latest stable stable-daily)
47+ echo " The default selection is latest, stable (weekly builds) and stable-daily (daily builds) are for enthusiasts, and latest is for testers"
48+ echo " Note: Since you are on Fedora 42+, you will not be able to rollback to the GTS version."
49+ else
50+ CHANNELS=(latest stable stable-daily gts)
51+ echo " The default selection is gts, stable (weekly builds) and stable-daily (daily builds) are for enthusiasts, and latest is for testers"
52+ fi
4753
4854 # Fetch Fedora version per channel and build display list
4955 declare -a CHANNELS_DISPLAY
@@ -79,6 +85,19 @@ function rebase_helper() {
7985 rebase_target=" ${base_image} :${selected_tag} "
8086 fi
8187
88+ # GTS rollback warnings
89+ if [[ " $channel_selected " == " gts" && " $IMAGE_TAG " != " gts" ]]; then
90+ echo " Warning: Rolling back Major Fedora Versions may not work as expected."
91+ fi
92+
93+ if [[ " $channel_selected " != " gts" && " $IMAGE_TAG " == " gts" ]]; then
94+ echo " Rebase to a non-GTS version is a one-way operation. You will not be able to rollback to GTS."
95+ echo " Are you sure you want to proceed?"
96+ if [[ $( Confirm) -ne " 0" ]]; then
97+ return 1
98+ fi
99+ fi
100+
82101 echo " Rebase target: ${rebase_target} "
83102 echo " Confirm rebase?"
84103 [[ $( Confirm) -ne 0 ]] && return 1
0 commit comments