diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2019-09-30 13:12:09 -0300 |
---|---|---|
committer | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2019-09-30 13:14:00 -0300 |
commit | 0edbeb36d567cbe893b104d7eb946f30ff592c27 (patch) | |
tree | 81f9e5acf4f2c36dcdf2e07083ccad41f3dcc584 | |
parent | a2223d11b58097b0cbb8eeacf66b17699ddada7f (diff) | |
download | virtme-0edbeb36d567cbe893b104d7eb946f30ff592c27.tar.gz |
Remove not used virtme-loadmods script
This script is not being used since 865d8717c806 ("virtme-init: Turn off virtme-loadmods").
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
-rwxr-xr-x | setup.py | 1 | ||||
-rwxr-xr-x | virtme/guest/virtme-init | 1 | ||||
-rwxr-xr-x | virtme/guest/virtme-loadmods | 28 |
3 files changed, 0 insertions, 30 deletions
@@ -37,7 +37,6 @@ setup( 'virtme.guest': [ 'virtme-init', 'virtme-udhcpc-script', - 'virtme-loadmods', ], }, classifiers=['Environment :: Console', diff --git a/virtme/guest/virtme-init b/virtme/guest/virtme-init index f60faa5..5852b22 100755 --- a/virtme/guest/virtme-init +++ b/virtme/guest/virtme-init @@ -104,7 +104,6 @@ tmpfiles=`which systemd-tmpfiles 2>/dev/null` && { install -d /run/dbus # Try to get udevd to coldplug everything. -# We could use virtme-loadmods as a lightweight alternative. if [[ -n "$udevd" ]]; then if [[ -e '/sys/kernel/uevent_helper' ]]; then # This kills boot performance. diff --git a/virtme/guest/virtme-loadmods b/virtme/guest/virtme-loadmods deleted file mode 100755 index 2c16db2..0000000 --- a/virtme/guest/virtme-loadmods +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -# -*- mode: python -*- -# virtme-loadmods: load modules for all available devices -# Copyright © 2014 Andy Lutomirski -# Licensed under the GPLv2, which is available in the virtme distribution -# as a file called LICENSE with SHA-256 hash: -# 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 - -export PATH=/bin:/sbin:/usr/bin:/usr/sbin -export TERM=linux - -log() { - if [[ -e /dev/kmsg ]]; then - echo "<6>virtme-loadmods: $*" >/dev/kmsg - else - echo "virtme-loadmods: $*" - fi -} - -log 'looking for modaliases' -mods="$(find /sys/devices -type f -name modalias -print0 |xargs -0 cat |sort |uniq)" - -log "requesting $(echo "$mods" |wc -w) modules" -modprobe -q -a -- $mods - -log 'done' - -exit 0 |