Compare Pastes

Differences between the pastes #269697 (27.05.2023 14:12) and #273847 (12.04.2024 00:45).
1
#------------------------------------------------------------------------------
2
# Modified Calculate Utilities 3.7.4.1
3
# Processed template files:
4
# /var/db/repos/calculate/profiles/templates/2_ac_install_merge/sys-boot/grub/grub.d/10_linux
1
Men dating men savoir faire tenderness, connection, and the beauty of relationships in their own unmatched way. 
2
https://sexyfatmature.net/tags/xhmasters/ 
3
In a life that embraces diversity and inclusivity, same-sex relationships keep ground their place. Men who date men sail the joys and challenges of structure meaningful connections based on authenticity and mutual understanding. They hallow charity while overcoming societal expectations, stereotypes, and discrimination. 
4
https://xlilith.com/search/anal-lesbian-squirting/ 
5
# To modify this file, create a /etc/grub.d/10_linux.clt template.
6
#------------------------------------------------------------------------------
7
#! /bin/sh
8
set -e
9
10
# grub-mkconfig helper script.
11
# Copyright (C) 2006,2007,2008,2009,2010  Free Software Foundation, Inc.
12
#
13
# GRUB is free software: you can redistribute it and/or modify
14
# it under the terms of the GNU General Public License as published by
15
# the Free Software Foundation, either version 3 of the License, or
16
# (at your option) any later version.
17
#
18
# GRUB is distributed in the hope that it will be useful,
19
# but WITHOUT ANY WARRANTY; without even the implied warranty of
20
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
# GNU General Public License for more details.
22
#
23
# You should have received a copy of the GNU General Public License
24
# along with GRUB.  If not, see .
25
26
prefix="/usr"
27
exec_prefix="/usr"
28
datarootdir="/usr/share"
29
30
. "$pkgdatadir/grub-mkconfig_lib"
31
32
export TEXTDOMAIN=grub
33
export TEXTDOMAINDIR="${datarootdir}/locale"
34
35
CLASS="--class gnu-linux --class gnu --class os"
36
37
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
38
  OS=GNU/Linux
39
else
40
  OS="${GRUB_DISTRIBUTOR} GNU/Linux"
41
  CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
42
fi
43
44
# loop-AES arranges things so that /dev/loop/X can be our root device, but
45
# the initrds that Linux uses don't like that.
46
case ${GRUB_DEVICE} in
47
  /dev/loop/*|/dev/loop[0-9])
48
    GRUB_DEVICE=`losetup ${GRUB_DEVICE} | sed -e "s/^[^(]*(\([^)]\+\)).*/\1/"`
49
  ;;
50
esac
51
52
# Default to disabling partition uuid support to maintian compatibility with
53
# older kernels.
54
GRUB_DISABLE_LINUX_PARTUUID=${GRUB_DISABLE_LINUX_PARTUUID-true}
55
56
# btrfs may reside on multiple devices. We cannot pass them as value of root= parameter
57
# and mounting btrfs requires user space scanning, so force UUID in this case.
58
if ( [ "x${GRUB_DEVICE_UUID}" = "x" ] && [ "x${GRUB_DEVICE_PARTUUID}" = "x" ] ) \
59
    || ( [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] \
60
	&& [ "x${GRUB_DISABLE_LINUX_PARTUUID}" = "xtrue" ] ) \
61
    || ( ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" \
62
	&& ! test -e "/dev/disk/by-partuuid/${GRUB_DEVICE_PARTUUID}" ) \
63
    || ( test -e "${GRUB_DEVICE}" && uses_abstraction "${GRUB_DEVICE}" lvm ); then
64
  LINUX_ROOT_DEVICE=${GRUB_DEVICE}
65
elif [ "x${GRUB_DEVICE_UUID}" = "x" ] \
66
    || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ]; then
67
  LINUX_ROOT_DEVICE=PARTUUID=${GRUB_DEVICE_PARTUUID}
68
else
69
  LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}
70
fi
71
72
case x"$GRUB_FS" in
73
    xbtrfs)
74
	rootsubvol="`make_system_path_relative_to_its_root /`"
75
	rootsubvol="${rootsubvol#/}"
76
	if [ "x${rootsubvol}" != x ]; then
77
	    GRUB_CMDLINE_LINUX="rootflags=subvol=${rootsubvol} ${GRUB_CMDLINE_LINUX}"
78
	fi;;
79
    xzfs)
80
	rpool=`${grub_probe} --device ${GRUB_DEVICE} --target=fs_label 2>/dev/null || true`
81
	bootfs="`make_system_path_relative_to_its_root / | sed -e "s,@$,,"`"
82
	LINUX_ROOT_DEVICE="ZFS=${rpool}${bootfs%/}"
83
	;;
84
esac
85
86
title_correction_code=
87
88
linux_entry ()
89
{
90
  os="$1"
91
  version="$2"
92
  type="$3"
93
  args="$4"
94
95
  if [ -z "$boot_device_id" ]; then
96
      boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
97
  fi
98
  if [ x$type != xsimple ] ; then
99
      case $type in
100
	  recovery)
101
	      title="$(gettext_printf "%s, with Linux %s (recovery mode)" "${os}" "${version}")" ;;
102
	  *)
103
	      title="$(gettext_printf "%s, with Linux %s" "${os}" "${version}")" ;;
104
      esac
105
      if [ x"$title" = x"$GRUB_ACTUAL_DEFAULT" ] || [ x"Previous Linux versions>$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then
106
	  replacement_title="$(echo "Advanced options for ${OS}" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g') ..."
107
	  quoted="$(echo "$GRUB_ACTUAL_DEFAULT" | grub_quote)"
108
	  title_correction_code="${title_correction_code}if [ \"x\$default\" = '$quoted' ]; then default='$(echo "$replacement_title" | grub_quote)'; fi;"
109
	  grub_warn "$(gettext_printf "Please don't use old title \`%s' for GRUB_DEFAULT, use \`%s' (for versions before 2.00) or \`%s' (for 2.00 or later)" "$GRUB_ACTUAL_DEFAULT" "$replacement_title" "gnulinux-advanced-$boot_device_id>gnulinux-$version-$type-$boot_device_id")"
110
      fi
111
      echo "menuentry '$(echo "$title" | grub_quote)' --unrestricted ${CLASS} \$menuentry_id_option 'gnulinux-$version-$type-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
112
  else
113
      echo "menuentry '$(echo "$os" | grub_quote)' --unrestricted ${CLASS} \$menuentry_id_option 'gnulinux-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
114
  fi      
115
  if [ x$type != xrecovery ] ; then
116
      save_default_entry | grub_add_tab
117
  fi
118
119
  # Use ELILO's generic "efifb" when it's known to be available.
120
  # FIXME: We need an interface to select vesafb in case efifb can't be used.
121
  if [ "x$GRUB_GFXPAYLOAD_LINUX" = x ]; then
122
      echo "	load_video" | sed "s/^/$submenu_indentation/"
123
      if grep -qx "CONFIG_FB_EFI=y" "${config}" 2> /dev/null \
124
	  && grep -qx "CONFIG_VT_HW_CONSOLE_BINDING=y" "${config}" 2> /dev/null; then
125
	  echo '	if [ "x$grub_platform" = xefi ]; then' | sed "s/^/$submenu_indentation/"
126
	  echo "		set gfxpayload=keep" | sed "s/^/$submenu_indentation/"
127
	  echo '	fi' | sed "s/^/$submenu_indentation/"
128
      fi
129
  else
130
      if [ "x$GRUB_GFXPAYLOAD_LINUX" != xtext ]; then
131
	  echo "	load_video" | sed "s/^/$submenu_indentation/"
132
      fi
133
      echo "	set gfxpayload=$GRUB_GFXPAYLOAD_LINUX" | sed "s/^/$submenu_indentation/"
134
  fi
135
136
  echo "	insmod gzio" | sed "s/^/$submenu_indentation/"
137
138
  if [ x$dirname = x/ ]; then
139
    if [ -z "${prepare_root_cache}" ]; then
140
      prepare_root_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE} | grub_add_tab)"
141
    fi
142
    printf '%s\n' "${prepare_root_cache}" | sed "s/^/$submenu_indentation/"
143
  else
144
    if [ -z "${prepare_boot_cache}" ]; then
145
      prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | grub_add_tab)"
146
    fi
147
    printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/"
148
  fi
149
  message="$(gettext_printf "Loading Linux %s ..." ${version})"
150
  sed "s/^/$submenu_indentation/" << EOF
151
	echo	'$(echo "$message" | grub_quote)'
152
	linux	${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
153
EOF
154
  if test -n "${initrd}" ; then
155
    # TRANSLATORS: ramdisk isn't identifier. Should be translated.
156
    message="$(gettext_printf "Loading initial ramdisk ...")"
157
    initrd_path=
158
    for i in ${initrd}; do
159
      initrd_path="${initrd_path} ${rel_dirname}/${i}"
160
    done
161
    sed "s/^/$submenu_indentation/" << EOF
162
	echo	'$(echo "$message" | grub_quote)'
163
	initrd	$(echo $initrd_path)
164
EOF
165
  fi
166
  sed "s/^/$submenu_indentation/" << EOF
167
}
168
EOF
169
}
170
171
machine=`uname -m`
172
globs="$GRUB_LINUX_KERNEL_GLOBS"
173
[ -z "$globs" ] && case "x$machine" in
174
    xi?86 | xx86_64)
175
	globs="/boot/vmlinuz-* /vmlinuz-* /boot/kernel-*"
176
	;;
177
    *)
178
	globs="/boot/vmlinuz-* /boot/vmlinux-* /vmlinuz-* /vmlinux-* /boot/kernel-*"
179
	;;
180
esac
181
list=
182
for i in ${globs} ; do
183
    if grub_file_is_not_garbage "$i" ; then list="$list $i" ; fi
184
done
185
186
case "$machine" in
187
    i?86) GENKERNEL_ARCH="x86" ;;
188
    mips|mips64) GENKERNEL_ARCH="mips" ;;
189
    mipsel|mips64el) GENKERNEL_ARCH="mipsel" ;;
190
    arm*) GENKERNEL_ARCH="arm" ;;
191
    *) GENKERNEL_ARCH="$machine" ;;
192
esac
193
194
prepare_boot_cache=
195
prepare_root_cache=
196
boot_device_id=
197
title_correction_code=
198
199
# Extra indentation to add to menu entries in a submenu. We're not in a submenu
200
# yet, so it's empty. In a submenu it will be equal to '\t' (one tab).
201
submenu_indentation=""
202
203
is_top_level=true
204
while [ "x$list" != "x" ] ; do
205
  linux=`version_find_latest $list`
206
  gettext_printf "Found linux image: %s\n" "$linux" >&2
207
  basename=`basename $linux`
208
  dirname=`dirname $linux`
209
  rel_dirname=`make_system_path_relative_to_its_root $dirname`
210
  version=`echo $basename | sed -e "s,^[^0-9]*-,,g"`
211
  alt_version=`echo $version | sed -e "s,\.old$,,g"`
212
  linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
213
214
  initrd_early=
215
  for i in ${GRUB_EARLY_INITRD_LINUX_STOCK} \
216
	   ${GRUB_EARLY_INITRD_LINUX_CUSTOM}; do
217
    if test -e "${dirname}/${i}" ; then
218
      initrd_early="${initrd_early} ${i}"
219
    fi
220
  done
221
222
  initrd_real=
223
  for i in "initrd.img-${version}" "initrd-${version}.img" \
224
	   "initrd-${alt_version}.img.old" "initrd-${version}.gz" \
225
	   "initrd-${alt_version}.gz.old" "initrd-${version}" \
226
	   "initramfs-${version}.img" "initramfs-${alt_version}.img.old" \
227
	   "initrd.img-${alt_version}" "initrd-${alt_version}.img" \
228
	   "initrd-${alt_version}" "initramfs-${alt_version}.img" \
229
	   "initramfs-genkernel-${version}" \
230
	   "initramfs-genkernel-${alt_version}" \
231
	   "initramfs-genkernel-${GENKERNEL_ARCH}-${version}" \
232
	   "initramfs-genkernel-${GENKERNEL_ARCH}-${alt_version}"; do
233
    if test -e "${dirname}/${i}" ; then
234
      initrd_real="${i}"
235
      break
236
    fi
237
  done
238
239
  initrd=
240
  if test -n "${initrd_early}" || test -n "${initrd_real}"; then
241
    initrd="${initrd_early} ${initrd_real}"
242
243
    initrd_display=
244
    for i in ${initrd}; do
245
      initrd_display="${initrd_display} ${dirname}/${i}"
246
    done
247
    gettext_printf "Found initrd image: %s\n" "$(echo $initrd_display)" >&2
248
  fi
249
250
  config=
251
  for i in "${dirname}/config-${version}" "${dirname}/config-${alt_version}" "/etc/kernels/kernel-config-${version}" ; do
252
    if test -e "${i}" ; then
253
      config="${i}"
254
      break
255
    fi
256
  done
257
258
  initramfs=
259
  if test -n "${config}" ; then
260
      initramfs=`grep CONFIG_INITRAMFS_SOURCE= "${config}" | cut -f2 -d= | tr -d \"`
261
  fi
262
263
  if test -z "${initramfs}" && test -z "${initrd_real}" ; then
264
    # "UUID=" and "ZFS=" magic is parsed by initrd or initramfs.  Since there's
265
    # no initrd or builtin initramfs, it can't work here.
266
    if [ "x${GRUB_DEVICE_PARTUUID}" = "x" ] \
267
	|| [ "x${GRUB_DISABLE_LINUX_PARTUUID}" = "xtrue" ]; then
268
269
	linux_root_device_thisversion=${GRUB_DEVICE}
270
    else
271
	linux_root_device_thisversion=PARTUUID=${GRUB_DEVICE_PARTUUID}
272
    fi
273
  fi
274
275
  # The GRUB_DISABLE_SUBMENU option used to be different than others since it was
276
  # mentioned in the documentation that has to be set to 'y' instead of 'true' to
277
  # enable it. This caused a lot of confusion to users that set the option to 'y',
278
  # 'yes' or 'true'. This was fixed but all of these values must be supported now.
279
  if [ "x${GRUB_DISABLE_SUBMENU}" = xyes ] || [ "x${GRUB_DISABLE_SUBMENU}" = xy ]; then
280
    GRUB_DISABLE_SUBMENU="true"
281
  fi
282
283
  if [ "x$is_top_level" = xtrue ] && [ "x${GRUB_DISABLE_SUBMENU}" != xtrue ]; then
284
    linux_entry "${OS}" "${version}" simple \
285
    "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
286
287
    submenu_indentation="$grub_tab"
288
    
289
    if [ -z "$boot_device_id" ]; then
290
	boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
291
    fi
292
    # TRANSLATORS: %s is replaced with an OS name
293
    echo "submenu '$(gettext_printf "Advanced options for %s" "${OS}" | grub_quote) ...' --unrestricted \$menuentry_id_option 'gnulinux-advanced-$boot_device_id' {"
294
    is_top_level=false
295
  fi
296
297
  linux_entry "${OS}" "${version}" advanced \
298
              "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
299
  if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then
300
    linux_entry "${OS}" "${version}" recovery \
301
                "single ${GRUB_CMDLINE_LINUX}"
302
  fi
303
304
  list=`echo $list | tr ' ' '\n' | fgrep -vx "$linux" | tr '\n' ' '`
305
done
306
307
# If at least one kernel was found, then we need to
308
# add a closing '}' for the submenu command.
309
if [ x"$is_top_level" != xtrue ]; then
310
  echo '}'
311
fi
312