mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-31 10:06:39 +00:00
Testcase and genimage fixes for squashfs
This commit is contained in:
parent
8bf0a31022
commit
f7dbd08b96
@ -65,7 +65,6 @@ if [ -r /rootimg.sfs ]; then
|
||||
mkdir -p /rw
|
||||
mount -t squashfs /rootimg.sfs /ro
|
||||
mount -t tmpfs rw /rw
|
||||
mount -t aufs -o dirs=/rw:/ro mergedroot $NEWROOT
|
||||
modinfo overlay
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Mounting $NEWROOT with type overlay"
|
||||
@ -75,6 +74,7 @@ if [ -r /rootimg.sfs ]; then
|
||||
mount -t overlay -o lowerdir=/ro,upperdir=/rw/upper,workdir=/rw/work mergedroot $NEWROOT
|
||||
else
|
||||
echo "Mounting $NEWROOT with type aufs"
|
||||
mount -t aufs -o dirs=/rw:/ro mergedroot $NEWROOT
|
||||
mkdir -p $NEWROOT/ro
|
||||
mkdir -p $NEWROOT/rw
|
||||
mount --move /ro $NEWROOT/ro
|
||||
|
@ -131,13 +131,13 @@ check:rc==0
|
||||
cmd:rm -rf /tmp/mountoutput
|
||||
|
||||
#Make sure squashfs-tools rpm is installed on RHEL
|
||||
cmd:if [ "$$OS" =~ "rhel" ];then yum install -y squashfs-tools; fi
|
||||
cmd:if [[ "$$OS" =~ "rhel" ]]; then yum install -y squashfs-tools; fi
|
||||
|
||||
#Make sure squashfs-tools rpm is installed on Ubuntu
|
||||
cmd:if [ "$$OS" =~ "ubuntu" ];then apt-get install -y squashfs-tools; fi
|
||||
cmd:if [[ "$$OS" =~ "ubuntu" ]]; then apt-get install -y squashfs-tools; fi
|
||||
|
||||
#Make sure squashfs rpm is installed on SLES
|
||||
cmd:if [ "$$OS" =~ "sle" ];then zypper install -y squashfs; fi
|
||||
cmd:if [[ "$$OS" =~ "sle" ]]; then zypper install -y squashfs; fi
|
||||
|
||||
cmd:packimage -m squashfs __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute
|
||||
check:rc==0
|
||||
|
@ -154,13 +154,13 @@ cmd:genimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-comput
|
||||
check:rc==0
|
||||
|
||||
#Make sure squashfs-tools rpm is installed on RHEL
|
||||
cmd:if [ "$$OS" =~ "rhel" ];then yum install -y squashfs-tools; fi
|
||||
cmd:if [[ "$$OS" =~ "rhel" ]]; then yum install -y squashfs-tools; fi
|
||||
|
||||
#Make sure squashfs-tools rpm is installed on Ubuntu
|
||||
cmd:if [ "$$OS" =~ "ubuntu" ];then apt-get install -y squashfs-tools; fi
|
||||
cmd:if [[ "$$OS" =~ "ubuntu" ]]; then apt-get install -y squashfs-tools; fi
|
||||
|
||||
#Make sure squashfs rpm is installed on SLES
|
||||
cmd:if [ "$$OS" =~ "sle" ];then zypper install -y squashfs; fi
|
||||
cmd:if [[ "$$OS" =~ "sle" ]]; then zypper install -y squashfs; fi
|
||||
|
||||
cmd:packimage -m squashfs __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute
|
||||
check:rc==0
|
||||
|
Loading…
x
Reference in New Issue
Block a user