Ask Your Question
1

Is it possible to install Fedora from a chroot in a way analogous to Arch Linux?

asked 2017-12-25 07:19:41 -0600

I would like to build a Fedora system from the ground up and I'm wondering if there's a lesser known chroot method for installing Fedora. If it is possible I think the most interesting part of it would be how to install a base system into which one can chroot. The only way I can come up with is getting the base file system from a Fedora netinstall ISO image.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2017-12-25 16:08:07 -0600

Rabin gravatar image

I never tried this but teoreticly you should be able to use dnf --installroot= to install fedora base system to a different location. you can create a new LVM to use existing partition and mount it to a new folder and use the command above to install fedora into it, and then use systemd-nspawn to access it.

see here for a example using yum instead dnf

edit flag offensive delete link more

Comments

I tried this and gave up because it was a lot of work, but I think this is a possible way (not sure though).

Give it a try.

abadrinath gravatar imageabadrinath ( 2017-12-25 16:53:20 -0600 )edit
0

answered 2017-12-26 22:56:46 -0600

davidva gravatar image

updated 2017-12-26 23:01:20 -0600

mmm you can to use mock... "mock" makes chroots... example running "mock shell" you can install packages, remove; edit the chroot... Other alternative is Docker...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-12-25 07:19:41 -0600

Seen: 575 times

Last updated: Dec 26 '17