I moved my main home computer to Mageia 5 (it was under Fedora before).

I choose Cinnamon because I have it on my laptop and I like it.

Since I have to maintain my Fedora packages (Firebird related), I choosed tocreate a Fedora 21 chroot.

Here what I did under Mageia 5 :

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# urpmi yum python-lzma
# mkdir -p /var/local/chroot/fedora/var/lib/rpm
# rpm --root /var/local/chroot/fedora --initdb
# cd /tmp/
# wget ftp://195.220.108.108/linux/fedora/linux/releases/21/Everything/x86_64/os/Packages/f/fedora-release-21-2.noarch.rpm
# wget ftp://195.220.108.108/linux/fedora/linux/releases/21/Everything/x86_64/os/Packages/f/fedora-repos-21-2.noarch.rpm
# rpm -ivh --nodeps --root /var/local/chroot/fedora fedora*rpm
# for f in /var/local/chroot/fedora/etc/yum.repos.d/*; do  sed -i 's/$basearch/x86_64/g;' $f; done
# ln -s /var/local/chroot/fedora/etc/pki/rpm-gpg/ /etc/pki/rpm-gpg
# yum --installroot=/var/local/chroot/fedora repolist all
# yum --installroot=/var/local/chroot/fedora groupinstall Core# urpmi schroot

Configure the chroot in schroot :

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
$ cat /etc/schroot/chroot.d/fedora
[fedora]
description=Fedora 21
type=directory
directory=/var/local/chroot/fedora
users=philippe
groups=wheel
root-groups=root,wheel
aliases=default
preserve-environment=true

Finally, we do some customizations to make the Fedora system schroot friendly

1
2
3
4
5
6
7
8
# echo fedora21 > /var/local/chroot/fedora/etc/debian_chroot
# cat << 'EOF' > /var/local/chroot/fedora/etc/profile.d/debian_chroot.sh
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi# set a fancy prompt (non-color, overwrite the one in /etc/profile)
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
EOF

Test :

1
2
3
philippe@callandor ~$ schroot -c fedora
(fedora)philippe@callandor:~$ cat /etc/fedora-release
Fedora release 21 (Twenty One)

All is ok, I can now set up the Fedora packager tools with a yum installfedora-packager and fedora-packager-setup