Skip to content

Commit 2c712e0

Browse files
committed
at attempt to fix f21 boot sequence on physical nodes
1 parent b6a8465 commit 2c712e0

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

prep.sh

+13-4
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,20 @@ if [ -d $bootcd/etc/systemd/system ] ; then
9898
for file in pl_boot.service pl_boot.target ; do
9999
install -D -m 644 systemd/$file $bootcd/etc/systemd/system
100100
done
101-
echo "* Enabling getty on tty2"
101+
echo "* Configuration BootCD to start up pl_boot"
102+
# first attempt was to totally replace everything with pl_boot.target
103+
# this however leads to physical f21 nodes not starting up properly
104+
# because biosdevname is not properly honored and so pl_netinit gets confused
102105
# select pl_boot target this way instead of using kargs, as kargs apply to kexec boot as well
103-
ln -sf /etc/systemd/system/pl_boot.target $bootcd/etc/systemd/system/default.target
104-
[ -d $bootcd/etc/systemd/system/pl_boot.target.wants ] || mkdir -p $bootcd/etc/systemd/system/pl_boot.target.wants
105-
ln -sf /usr/lib/systemd/system/[email protected] $bootcd/etc/systemd/system/pl_boot.target.wants/[email protected]
106+
# ln -sf /etc/systemd/system/pl_boot.target $bootcd/etc/systemd/system/default.target
107+
#[ -d $bootcd/etc/systemd/system/pl_boot.target.wants ] || mkdir -p $bootcd/etc/systemd/system/pl_boot.target.wants
108+
# Let's try another approach completely
109+
# xxx if that worked we would not need pl_boot.target at all
110+
mkdir -p $bootcd/etc/systemd/system/default.target.wants
111+
ln -sf /etc/systemd/system/pl_boot.service $bootcd/etc/systemd/system/default.target.wants
112+
echo "* Enabling getty on tty2"
113+
#ln -sf /usr/lib/systemd/system/[email protected] $bootcd/etc/systemd/system/pl_boot.target.wants/[email protected]
114+
ln -sf /usr/lib/systemd/system/[email protected] $bootcd/etc/systemd/system/default.target.wants/[email protected]
106115
fi
107116

108117
# Install fallback node configuration file

0 commit comments

Comments
 (0)