Make the network script explicitly dependent on setup-bootdev to avoid race condition in systemd
Change-Id: Ied870fe1b60e1e4da25c802bd6fdf1c0a55b4b83 Close-bug: #1526262
This commit is contained in:
parent
07d5f1c3e1
commit
8d5a4688b8
|
@ -171,6 +171,8 @@ $(BUILD_DIR)/bootstrap/customize-initram-root.done: \
|
|||
|
||||
# Enabling pre-init boot interface discovery
|
||||
#sudo chroot $(INITRAMROOT) chkconfig setup-bootdev on
|
||||
# Make the network script dependent on the setup-bootdev for correst network starting
|
||||
sudo sed -i -e 's|\(^# Should-Start:.*\)|\1 setup-bootdev|' $(INITRAMROOT)/etc/init.d/network
|
||||
|
||||
# Setting root password into r00tme
|
||||
sudo sed -i -e '/^root/c\root:$$6$$oC7haQNQ$$LtVf6AI.QKn9Jb89r83PtQN9fBqpHT9bAFLzy.YVxTLiFgsoqlPY3awKvbuSgtxYHx4RUcpUqMotp.WZ0Hwoj.:15441:0:99999:7:::' $(INITRAMROOT)/etc/shadow
|
||||
|
|
Loading…
Reference in New Issue