Garuda-Update Self-Update no user input after super pass

Hello All!

I was wondering if, or how, to setup "update" or "garuda-update" to not require the user to hit 'y' to proceed with the update. I don't mind it asking for a password, but would like the actual feel of "self-updating" which, to me, is killed with extra user input.

On Ubuntu, and other distros, I used to be able to call the update function and add "-y" to the end to bypass that prompt.

Is there a way to edit the script file so I can do that, or add an argument to the script file to be able to accept the -y option and input it in the correct space so it doesn't prompt me to proceed?

My "garuda-inxi" code is below.

System:
Kernel: 5.17.7-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=c4bfb4fd-4164-47ce-8887-6093914c895d rw [email protected]
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
resume=UUID=7b874558-0c81-4dff-a3d5-41570aa25366 loglevel=3
Desktop: KDE Plasma v: 5.24.5 tk: Qt v: 5.15.4 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop Mobo: ASUSTeK model: P6T v: Rev 1.xx
serial: <superuser required> BIOS: American Megatrends v: 0707
date: 08/18/2009
CPU:
Info: model: Intel Core i7 920 bits: 64 type: MT MCP arch: Nehalem
family: 6 model-id: 0x1A (26) stepping: 5 microcode: 0x1D
Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
L3: 8 MiB desc: 1x8 MiB
Speed (MHz): avg: 2804 high: 2816 min/max: 1600/2668 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 2806 2: 2806
3: 2807 4: 2806 5: 2816 6: 2783 7: 2807 8: 2806 bogomips: 42762
Flags: ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities:
Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf
mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
Type: mds status: Vulnerable: Clear CPU buffers attempted, no microcode;
SMT vulnerable
Type: meltdown mitigation: PTI
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
STIBP: conditional, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: NVIDIA GM206 [GeForce GTX 960] vendor: Micro-Star MSI
driver: nvidia v: 515.43.04 alternate: nouveau,nvidia_drm pcie: gen: 2
speed: 5 GT/s lanes: 16 bus-ID: 02:00.0 chip-ID: 10de:1401 class-ID: 0300
Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.1
compositor: kwin_x11 driver: X: loaded: nvidia unloaded: modesetting
alternate: fbdev,nouveau,nv,vesa gpu: nvidia display-ID: :0 screens: 1
Screen-1: 0 s-res: 5760x1080 s-dpi: 92 s-size: 1590x301mm (62.60x11.85")
s-diag: 1618mm (63.71")
Monitor-1: DP-2 pos: primary,left res: 1920x1080 hz: 60 dpi: 93
size: 527x296mm (20.75x11.65") diag: 604mm (23.8") modes: N/A
Monitor-2: DP-5 pos: right res: 1920x1080 hz: 60 dpi: 96
size: 510x290mm (20.08x11.42") diag: 587mm (23.1") modes: N/A
Monitor-3: HDMI-0 pos: center res: 1920x1080 hz: 60 dpi: 96
size: 510x290mm (20.08x11.42") diag: 587mm (23.1") modes: N/A
OpenGL: renderer: NVIDIA GeForce GTX 960/PCIe/SSE2
v: 4.6.0 NVIDIA 515.43.04 direct render: Yes
Audio:
Device-1: Intel 82801JI HD Audio vendor: ASUSTeK driver: snd_hda_intel
v: kernel bus-ID: 00:1b.0 chip-ID: 8086:3a3e class-ID: 0403
Device-2: Creative Labs EMU20k2 [Sound Blaster X-Fi Titanium Series]
driver: snd_ctxfi v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
bus-ID: 01:00.0 chip-ID: 1102:000b class-ID: 0403
Device-3: NVIDIA GM206 High Definition Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 16
bus-ID: 02:00.1 chip-ID: 10de:0fba class-ID: 0403
Device-4: SteelSeries ApS Arctis 5 type: USB
driver: hid-generic,snd-usb-audio,usbhid bus-ID: 2-5.3:22
chip-ID: 1038:12aa class-ID: 0300 serial: <filter>
Sound Server-1: ALSA v: k5.17.7-zen1-1-zen running: yes
Sound Server-2: PulseAudio v: 15.0 running: yes
Sound Server-3: PipeWire v: 0.3.51 running: yes
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: ASUSTeK M3A78 Series driver: r8169 v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: e800 bus-ID: 06:00.0 chip-ID: 10ec:8168
class-ID: 0200
IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
Local Storage: total: 7.5 TiB used: 95.03 GiB (1.2%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital
model: WD1002FAEX-00Z3A0 size: 931.51 GiB block-size: physical: 512 B
logical: 512 B speed: 3.0 Gb/s type: N/A serial: <filter> rev: 1D05
scheme: MBR
ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital model: WDBNCE5000PNC
size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s
type: SSD serial: <filter> rev: 20RL scheme: MBR
ID-3: /dev/sdc maj-min: 8:32 vendor: Western Digital
model: WD7502AAEX-00Y9A0 size: 698.64 GiB block-size: physical: 512 B
logical: 512 B speed: 3.0 Gb/s type: N/A serial: <filter> rev: 1D05
scheme: GPT
ID-4: /dev/sdd maj-min: 8:48 vendor: Western Digital
model: WD20EARX-00PASB0 size: 1.82 TiB block-size: physical: 4096 B
logical: 512 B speed: 3.0 Gb/s type: N/A serial: <filter> rev: AB51
scheme: MBR
ID-5: /dev/sde maj-min: 8:64 vendor: Western Digital
model: WD4000FYYZ-01UL1B2 size: 3.64 TiB block-size: physical: 512 B
logical: 512 B speed: 3.0 Gb/s type: HDD rpm: 7200 serial: <filter>
rev: 1K03 scheme: GPT
Partition:
ID-1: / raw-size: 433.45 GiB size: 433.45 GiB (100.00%)
used: 44.27 GiB (10.2%) fs: btrfs dev: /dev/sdb1 maj-min: 8:17
ID-2: /home raw-size: 433.45 GiB size: 433.45 GiB (100.00%)
used: 44.27 GiB (10.2%) fs: btrfs dev: /dev/sdb1 maj-min: 8:17
ID-3: /var/log raw-size: 433.45 GiB size: 433.45 GiB (100.00%)
used: 44.27 GiB (10.2%) fs: btrfs dev: /dev/sdb1 maj-min: 8:17
ID-4: /var/tmp raw-size: 433.45 GiB size: 433.45 GiB (100.00%)
used: 44.27 GiB (10.2%) fs: btrfs dev: /dev/sdb1 maj-min: 8:17
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 32.31 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/sdb2 maj-min: 8:18
ID-2: swap-2 type: zram size: 29.37 GiB used: 360.8 MiB (1.2%)
priority: 100 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 48.5 C mobo: 32.0 C gpu: nvidia temp: 50 C
Fan Speeds (RPM): cpu: 2343 psu: 0 case-1: 0 case-2: 0 gpu: nvidia
fan: 0%
Power: 12v: 12.19 5v: N/A 3.3v: 3.31 vbat: N/A
Info:
Processes: 331 Uptime: 1d 13h 31m wakeups: 0 Memory: 29.37 GiB
used: 17.7 GiB (60.3%) Init: systemd v: 250 tool: systemctl Compilers:
gcc: 12.1.0 clang: 13.0.1 Packages: pacman: 2122 lib: 555 Shell: fish
v: 3.4.1 default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.15
Garuda (2.6.3-2):
System install date:     2022-05-07
Last full system update: 2022-05-15 ↻
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       <superuser required>
Snapshots:               Snapper
Failed units:            bluetooth-autoconnect.service

EDIT: Yes a switch would be great guys! I appreciate the refile of my post tags. I apologize for miscategorizing it in the first place but I am new to your forum. I will get used to how it goes.

I also would have replied, but it seems my reply button is non-existent in the current category. Please let me know when you have completed said change or how ot implement your suggested change and I will make that post as my solution!

I can add a --noconfirm switch and a config file setting for you tomorrow if you want!

This is kind of on purpose though since i don't want to be blamed for any decisions pacman ends up making. I want to be able to say "but you said yes to the update so" just in case :stuck_out_tongue: But an option should be fine.

8 Likes

An option should be fine because then you can say "Well you chose to use the noconfirm option":wink:

4 Likes

Would love it too!

1 Like

Added and added to wiki page: Garuda Update | Garuda Linux wiki

9 Likes

Working like a charm!
Thanks!!!
If anything else in life could be done that simply, efficiently and as quickly!

2 Likes

No confirm is a bad idea and will eventually end up with a borked system and then the shit will hit the fan.
You don't need to type y just hit enter or do users want to mimic the worst Win and Ubuntu through damn sheer ignorance.

3 Likes

This is only an option and not default behaviour.

3 Likes

It will be used by people who can't tie their shoes and then they will come running, "You broke my computer".
The people who want it to self update should be able to do it themselves without asking in the forums.
Just my 2 cents.

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.