Menu

#4760 [fvt]2.10:there are wrong info in /etc/fstab file after ubuntu diskless provision

2.10
closed
yangsong
None
unknown
5
2015-07-27
2015-07-24
junxiaw
No

How to reproduce:
1.download the latest build
2.nodeset cn osimage=ubuntu14.04.2-x86_64-netboot-compute
3.rpower cn boot
after cn provisioned.
on compute node:
root@c910f04x27v10:~# uname -a
Linux c910f04x27v10 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
root@c910f04x27v10:~# cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS"
NAME="Ubuntu"
VERSION="14.04, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
root@c910f04x27v10:~#
cat /etc/fstab
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /tmp tmpfs defaults 0 2
tmpfs /var/tmp tmpfs defaults 0 2
compute_ppc64el / tmpfs rw 0 1
---------------->this on x86_64 env but ha ve compute_ppc64el info

Discussion

  • yangsong

    yangsong - 2015-07-24
    • status: open --> pending
     
  • yangsong

    yangsong - 2015-07-24

    fixed in 2.10:
    The branch, master has been updated
    via 79c7f6949c09e0b49875f10ede4b75b18ad4a0e7 (commit)
    from 89ec416a2be2d85bbcf5154bb9e7878dae48726e (commit)


    commit 79c7f6949c09e0b49875f10ede4b75b18ad4a0e7
    Author: yangsong yangsbj@cn.ibm.com
    Date: Fri Jul 24 04:53:46 2015 -0400

    fix defect #4760 [fvt]2.10:there are wrong info in /etc/fstab file after ubuntu diskless provision:correct the fstab entry according to the profile and arch of the osimage
    

    diff --git a/xCAT-server/share/xcat/netboot/ubuntu/compute.postinstall b/xCAT-server/share/xcat/netboot/ubuntu/compute.postinstall
    index a69ec1e..1e6ed8d 100755
    --- a/xCAT-server/share/xcat/netboot/ubuntu/compute.postinstall
    +++ b/xCAT-server/share/xcat/netboot/ubuntu/compute.postinstall
    @@ -28,7 +28,7 @@ proc /proc proc defaults 0 0
    sysfs /sys sysfs defaults 0 0
    tmpfs /tmp tmpfs defaults 0 2
    tmpfs /var/tmp tmpfs defaults 0 2
    -compute_ppc64el / tmpfs rw 0 1
    +${profile}_${arch} / tmpfs rw 0 1
    END

     
  • junxiaw

    junxiaw - 2015-07-27
    • status: pending --> closed