Quote:
Originally Posted by displace
But this approach requires me to manually stop the service via root shell to trigger unmounting and closing of the dm-crypt device before I can safely remove the disk.
|
I typically have a ~/Documents/Scripts directory. Sometimes I upgrade multiple installed Operating Systems from one on a multi-boot by clicking on the menu item.
I create a "updater.desktop" and put it in ~/.local/share/applications. For KDE it kicks off a up.sh script that launches Konsole asking for root password, then executes the updater.sh script after the password. up.sh:
Code:
#!/bin/sh
konsole -e su root /home/ME/Documents/Scripts/updater.sh
The updater mounts other OS partitions, chroot in and apply updates, unmount etc. All by clicking on a menu item with a snazzy icon of my choosing.
EDIT: I usually browse the /usr/share/applications directory to find an existing .desktop that suits my needs, make a copy and edit it's name, point to my script, change the icon etc,