reactivación del test-badblocks destructivo
This commit is contained in:
parent
a2be0ee190
commit
07fa2293e1
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue