Hi everyone,
I’m running FreePBX 16 Distro (Sangoma Linux 7 - CentOS 7 base) and recently I had to reset the root password.
I followed the usual method by editing the GRUB boot entry:
- Added
init=/bin/bash
at the end of thelinux16
line - Booted into
bash-4.2#
- Ran these commands:
mount -o remount,rw /
passwd
sync
Password reset worked
Then I also ran these (to prepare for proper reboot):
mount -t proc proc /proc
mount -t sysfs sys /sys
mount -o bind /dev /dev
Problem:
Now, no matter what I do, the server always boots back into -bash-4.2#
shell instead of the normal shell ([root@freepbx ~]#
).
Also, after reboot:
- NetworkManager doesn’t start
- DHCP doesn’t assign a public IP
- FreePBX web UI is not accessible
What I Tried So Far:
Removed init=/bin/bash
from GRUB
Rebuilt /etc/default/grub
and ran:
grub2-mkconfig -o /boot/grub2/grub.cfg
Tried booting with:
systemd.unit=multi-user.target
instead of quiet
Tried running:
/sbin/init
…but it returns init: required argument missing
- How can I force the system to boot fully into normal shell mode (not
bash-4.2#
)? - How can I fix DHCP or networking issue on boot?