reactivación del test-badblocks destructivo

This commit is contained in:
Sandino Araico Sanchez 2017-07-14 06:21:59 -05:00
parent a2be0ee190
commit 07fa2293e1

View file

@ -2,7 +2,7 @@ https://access.redhat.com/solutions/1220603
rm /etc/systemd/system/getty.target.wants/getty@tty1.service
cat >> /etc/systemd/user/test-mem-hdd.service << EOF
cat >> /etc/systemd/system/getty@tty1.service << EOF
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
@ -47,10 +47,11 @@ SendSIGHUP=yes
Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFICATION=
[Install]
Alias=getty@tty1.service
WantedBy=getty.target
EOF
ln -svf /etc/systemd/user/test-mem-hdd.service /etc/systemd/system/getty.target.wants/getty@tty1.service
ln -svf /etc/systemd/system/getty@tty1.service /etc/systemd/system/getty.target.wants/getty@tty1.service
sed -i '/^root/ a test:x:0:0:test:/root:/usr/local/bin/screen-mem-hdd' /etc/passwd
sed -i '/^root/ a test:$6$RilmkHYl9XJJAYdQ$kNHf8CkSYxOMhUgytSBFIxmg3rSPjsDAjLH3lCDjPP8XzWqUJMw2BIzZsbYmewNfzK2S3QIEWXYtS8QZFij0k1::0:99999:7:::' /etc/shadow