Less use of clear screen
This commit is contained in:
parent
b8cc5bae86
commit
a22fae2f72
5 changed files with 30 additions and 10 deletions
|
@ -13,7 +13,7 @@ function make_BACKUP () {
|
|||
|
||||
# Backup system files
|
||||
sudo cp -v "/etc/modules" "$BACKUPDIR/etc/modules"
|
||||
sudo cp -v "/etc/initramfs-tools/modules" "$BACKUPDIR/etc/initramfs-rools/modules"
|
||||
sudo cp -v "/etc/initramfs-tools/modules" "$BACKUPDIR/etc/initramfs-tools/modules"
|
||||
sudp cp -v "/etc/default/grub" "$BACKUPDIR/etc/default/grub"
|
||||
|
||||
# If a vfio.conf file exists, backup that too
|
||||
|
|
|
@ -5,8 +5,7 @@ function get_GROUP () {
|
|||
# Get the config paths
|
||||
source "$SCRIPTDIR/lib/paths.sh"
|
||||
|
||||
printf "
|
||||
For this card to be passthrough-able, it must contain only:
|
||||
printf "For this card to be passthrough-able, it must contain only:
|
||||
* The GPU/Graphic card
|
||||
* The GPU Audio Controller
|
||||
|
||||
|
|
|
@ -2,7 +2,11 @@
|
|||
|
||||
# Function to configure systemd-boot using kernelstub
|
||||
function set_KERNELSTUB () {
|
||||
clear
|
||||
# Separator
|
||||
printf "
|
||||
############################################################
|
||||
"
|
||||
|
||||
# Tell what we are going to do
|
||||
echo "Adding vfio kernel arguments to systemd-boot using kernelstub"
|
||||
|
||||
|
@ -28,7 +32,11 @@ function set_KERNELSTUB () {
|
|||
|
||||
# Function to configure grub
|
||||
function set_GRUB () {
|
||||
clear
|
||||
# Separator
|
||||
printf "
|
||||
############################################################
|
||||
"
|
||||
|
||||
# Get the config paths
|
||||
source "$SCRIPTDIR/lib/paths.sh"
|
||||
|
||||
|
@ -69,7 +77,11 @@ $SCRIPTDIR/backup/etc/default/grub
|
|||
}
|
||||
|
||||
function show_FINISH () {
|
||||
clear
|
||||
# Separator
|
||||
printf "
|
||||
############################################################
|
||||
"
|
||||
|
||||
# Get the config paths
|
||||
source "$SCRIPTDIR/lib/paths.sh"
|
||||
|
||||
|
|
|
@ -55,7 +55,8 @@ function set_MODULES () {
|
|||
CMDLINE=$(cat "$SCRIPTDIR/config/kernel_args")
|
||||
|
||||
# Ask if we shall disable video output on this card
|
||||
echo "Disabling video output in Linux for the card you want to use in a VM
|
||||
echo "
|
||||
Disabling video output in Linux for the card you want to use in a VM
|
||||
will make it easier to successfully do the passthrough without issues."
|
||||
read -p "Do you want to force disable video output in linux on this card? [Y/n]: " DISABLE_VGA
|
||||
case "${DISABLE_VGA}" in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue