[RESOLVED] Problematic 'yum' repository paths using --installroot option

2020-02-03 Thread Pwillis
Hello,

This is now resolved via the YUM mailing list.

There is a deficeincy in the yum documentation. 
The yum man pages fail to detail the required files and directory structures 
that are required to. PRE-EXIST in the —installroot path.

 'yum —installroot' could not substitute the proper $slreleasever  value into 
the output URL because the expected directories and files, located 
‘/etc/yum/vars/….’,  did not exist.  By placing the proper config 
etc/... files and directories into the INSTALL_ROOT path  yum was able to 
generate the base file system. 

With any luck the man pages will be updated to include this important 
information.


Peter


> On Jan 28, 2020, at 2:50 PM, Peter Willis  wrote:
> 
> Hello,
> 
> I am attempting to build an exported file system for diskless nodes.
> 
> My distribution is  SL 7.7 and the command I am using is:
> 
> yum install @Base kernel dracut-network nfs-utils --installroot=/node_root 
> --releasever=/
> 
> The repository problem manifests as a mistranslation of the  '$slreleasever'  
>  environment variable.
> 
> This makes all the FTP repositories used by YUM malformed. The value 
> '$slreleasever'  appears to be inserted to the URLs rather than the proper 
> value  '7x'. Hence the URLs read:
> 
> https://urldefense.proofpoint.com/v2/url?u=http-3A__ftp.scientificlinux.org_linux_scientific_-2524slreleasever_x86-5F64_os_Packages_=DwIFAg=gRgGjJ3BkIsb5y6s49QqsA=gd8BzeSQcySVxr0gDWSEbN-P-pgDXkdyCtaMqdCgPPdW1cyL5RIpaIYrCn8C5x2A=_XPWQWNwUeu0ZFKH219isUWT6M2TPEo7FIuWwhY0wjM=-7jDic-Wp04OefvpIx3KLdPeLmRh7bYielU8ZO8vb2w=
>  .
> 
> Rather than :
> 
> https://urldefense.proofpoint.com/v2/url?u=http-3A__ftp.scientificlinux.org_linux_scientific_7x_x86-5F64_os_Packages_=DwIFAg=gRgGjJ3BkIsb5y6s49QqsA=gd8BzeSQcySVxr0gDWSEbN-P-pgDXkdyCtaMqdCgPPdW1cyL5RIpaIYrCn8C5x2A=_XPWQWNwUeu0ZFKH219isUWT6M2TPEo7FIuWwhY0wjM=UKg8rHPPmAJWsAUGj3Sw9Xgc2ybKBgIYkQkEmYV6HmU=
>  
> 
> 
> Has anyone encountered this issue with yum before?
> 
> Is there a solution? 
> 
> I have tried   'yum clean all'and friends.
> 
> Thanks for any help,
> 
> pwillis  


Problematic 'yum' repository paths using --installroot option

2020-01-28 Thread Peter Willis
Hello,

I am attempting to build an exported file system for diskless nodes.

My distribution is  SL 7.7 and the command I am using is:

yum install @Base kernel dracut-network nfs-utils --installroot=/node_root 
--releasever=/

The repository problem manifests as a mistranslation of the  '$slreleasever'   
environment variable.
 
This makes all the FTP repositories used by YUM malformed. The value 
'$slreleasever'  appears to be inserted to the URLs rather than the proper 
value  '7x'. Hence the URLs read:

https://urldefense.proofpoint.com/v2/url?u=http-3A__ftp.scientificlinux.org_linux_scientific_-2524slreleasever_x86-5F64_os_Packages_=DwIFAg=gRgGjJ3BkIsb5y6s49QqsA=gd8BzeSQcySVxr0gDWSEbN-P-pgDXkdyCtaMqdCgPPdW1cyL5RIpaIYrCn8C5x2A=_XPWQWNwUeu0ZFKH219isUWT6M2TPEo7FIuWwhY0wjM=-7jDic-Wp04OefvpIx3KLdPeLmRh7bYielU8ZO8vb2w=
 .

Rather than :

https://urldefense.proofpoint.com/v2/url?u=http-3A__ftp.scientificlinux.org_linux_scientific_7x_x86-5F64_os_Packages_=DwIFAg=gRgGjJ3BkIsb5y6s49QqsA=gd8BzeSQcySVxr0gDWSEbN-P-pgDXkdyCtaMqdCgPPdW1cyL5RIpaIYrCn8C5x2A=_XPWQWNwUeu0ZFKH219isUWT6M2TPEo7FIuWwhY0wjM=UKg8rHPPmAJWsAUGj3Sw9Xgc2ybKBgIYkQkEmYV6HmU=
 


Has anyone encountered this issue with yum before?

Is there a solution? 

I have tried   'yum clean all'and friends.

Thanks for any help,

pwillis