In ubuntu os compute node, I modified /etc/network/interfaces during post-installation; after preseed finished, and system rebooted, /etc/network/interfaces is overwritten;
After I nodeset cn osimage, I modified autoinst file under /install/autoinst:
d-i preseed/late_command string wget http://cat /tmp/xcatserver/install/autoinst/p1vm02.post; \ chmod u+x p1vm02.post; \ cp ./p1vm02.post /target/root/post.script; \ mount -o bind /proc /target/proc -t proc; \ mount -o bind /dev /target/dev; \ mount -o bind /dev/pts /target/dev/pts -t devpts; \ mount -o bind /sys /target/sys; \ chroot /target /root/post.script; \ cp /target/etc/network/interfaces /etc/network/interfaces -----------add this line
cat /tmp/xcatserver
After cn installed and rebooted, /etc/network/interfaces is not overwritten;
master:commit 76a9da1e87dea03f9307d3438fe13f09546ef3ca 2.9.1:59d1f82f9b82215eea224249d8ea35601429f8b1
After I nodeset cn osimage, I modified autoinst file under /install/autoinst:
d-i preseed/late_command string wget http://
cat /tmp/xcatserver/install/autoinst/p1vm02.post; \chmod u+x p1vm02.post; \
cp ./p1vm02.post /target/root/post.script; \
mount -o bind /proc /target/proc -t proc; \
mount -o bind /dev /target/dev; \
mount -o bind /dev/pts /target/dev/pts -t devpts; \
mount -o bind /sys /target/sys; \
chroot /target /root/post.script; \
cp /target/etc/network/interfaces /etc/network/interfaces -----------add this line
After cn installed and rebooted, /etc/network/interfaces is not overwritten;
master:commit 76a9da1e87dea03f9307d3438fe13f09546ef3ca
2.9.1:59d1f82f9b82215eea224249d8ea35601429f8b1