contribuciones en estancia con ekoa #1

Merged
pedro merged 17 commits from ekoa into main 2024-09-28 02:16:28 +00:00
2 changed files with 6 additions and 5 deletions
Showing only changes of commit 0545a2f460 - Show all commits

View File

@ -249,7 +249,7 @@ END2
###################
# configure hosts
cat > /etc/hosts <<END2
127.0.0.1 localhost \${hostname}
127.0.0.1 localhost workbench
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
@ -286,6 +286,7 @@ echo 'Install requirements'
# Install debian requirements
apt-get install -y --no-install-recommends \
sudo \
python3 python3-dev python3-pip pipenv \
dmidecode smartmontools hwinfo pciutils lshw < /dev/null
# Install python requirements using apt instead of pip
@ -312,7 +313,7 @@ run_chroot() {
set -x
set -e
echo "${hostname}" > /etc/hostname
echo workbench > /etc/hostname
# check what linux images are available on the system
# Figure out which Linux Kernel you want in the live environment.

View File

@ -228,9 +228,9 @@ def smartctl(all_disks, disk=None):
def get_data(all_disks):
lshw = 'lshw -json'
hwinfo = 'hwinfo --reallyall'
dmidecode = 'dmidecode'
lshw = 'sudo lshw -json'
hwinfo = 'sudo hwinfo --reallyall'
dmidecode = 'sudo dmidecode'
data = {
'lshw': exec_cmd(lshw),
'disks': smartctl(all_disks),