|
|
|
@ -110,27 +110,23 @@ ismounted() {
@@ -110,27 +110,23 @@ ismounted() {
|
|
|
|
|
|
|
|
|
|
systemctl --failed --no-legend --no-pager > /failed |
|
|
|
|
|
|
|
|
|
if ismounted /usr && [ ! -s /failed ]; then |
|
|
|
|
echo "dracut-root-block-success" | dd oflag=direct,dsync of=/dev/sdc |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if ! ismounted /usr; then |
|
|
|
|
echo "**************************FAILED**************************" |
|
|
|
|
echo "/usr not mounted!!" |
|
|
|
|
cat /proc/mounts |
|
|
|
|
echo "**************************FAILED**************************" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
journalctl --full --no-pager -o short-monotonic |
|
|
|
|
else |
|
|
|
|
if [ -s /failed ]; then |
|
|
|
|
echo "**************************FAILED**************************" |
|
|
|
|
cat /failed |
|
|
|
|
echo "**************************FAILED**************************" |
|
|
|
|
|
|
|
|
|
if [ -s /failed ]; then |
|
|
|
|
echo "**************************FAILED**************************" |
|
|
|
|
cat /failed |
|
|
|
|
echo "**************************FAILED**************************" |
|
|
|
|
else |
|
|
|
|
echo "dracut-root-block-success" | dd oflag=direct,dsync of=/dev/sdc |
|
|
|
|
echo "All OK" |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ls -al /run/systemd/system |
|
|
|
|
|
|
|
|
|
export TERM=linux |
|
|
|
|
export PS1='initramfs-test:\w\$ ' |
|
|
|
|
[ -f /etc/mtab ] || ln -sfn /proc/mounts /etc/mtab |
|
|
|
|