Menu

#4571 [dev]/etc/network/interfaces overwriten after first boot

2.9.1
closed
BaiYuan
ubuntu
5
2015-02-13
2015-02-12
BaiYuan
No

In ubuntu os compute node, I modified /etc/network/interfaces during post-installation; after preseed finished, and system rebooted, /etc/network/interfaces is overwritten;

Discussion

  • BaiYuan

    BaiYuan - 2015-02-12
    • labels: --> os provision
     
  • BaiYuan

    BaiYuan - 2015-02-12

    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;

     
  • BaiYuan

    BaiYuan - 2015-02-13
    • status: open --> pending
     
  • BaiYuan

    BaiYuan - 2015-02-13

    master:commit 76a9da1e87dea03f9307d3438fe13f09546ef3ca
    2.9.1:59d1f82f9b82215eea224249d8ea35601429f8b1

     
  • BaiYuan

    BaiYuan - 2015-02-13
    • status: pending --> closed
     
MongoDB Logo MongoDB