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:
Albert 2015-12-25 10:27:44 +02:00
parent 07d5f1c3e1
commit 8d5a4688b8
1 changed files with 2 additions and 0 deletions

View File

@ -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