Install Fedora by hand ... feeling brave :-)

Daniel Mach dmach at redhat.com
Sun Jun 7 20:23:37 UTC 2015


Dne 7.6.2015 v 16:12 David Timms napsal(a):
> Hi, I'm keen to install F22 on a laptop (shared with windows 7), but the
> installer bugs out due to problems in libparted when reading my disk
> (bz: 1223111):
> https://bugzilla.redhat.com/show_bug.cgi?id=1223111
>
> The machine boots and runs the live iso via usb, but also can't do
> install to the HD due to the above.
>
> So, what would it take to set up Fedora by hand ?
>
> My first go is:
> boot live iso to runlevel 2
> login: root
>
> mount /dev/sda6 /mnt
> mount /dev/sda5 /mnt/boot
> mount /dev/sda7 /mnt/home
> mount --bind /dev /mnt/dev
> mount --bind /proc /mnt/proc
> mount --bind /sys /mnt/proc
> mount -t tmpfs  tmpfs  /mnt/tmp ???
>
> dnf --installroot=/mnt install filesystem kernel firefox grub2  grubby
> (workstation stuff)
>
> chroot /mnt
> passwd
>
> dnf reinstall kernel (to make initrd creation work.)
>
> useradd myuser
> passwd myuser
> usermod -G wheel ??
>
> grub2-install /dev/sda
> grub2-mkconfig -o /boot/grub2/grub.cfg
>
> What other things will I need to do / what does Anaconda do ?
>
> My first effort looks like it may be hanging/dying on selinux parts; I
> was able to /etc/selinux/config to turn is to DISABLED and add selinux=0
> to kernel command line.
>
> Since all my files are installed without SE context, boot fails with SE
> enforcing. If SE disabled then restorecon etc don't work. What's the
> steps, to bootstrap selinux ?
>
> I imagine someone has done / documented this before, but google search
> not fruitful.
>

I was installing my laptop the same way you're describing.
It worked fine for for me until Fedora 18.
Unfortunately something changed and I installed Fedora 19 using Anaconda again (had no time to debug).

I think the only missing steps are to create /etc/fstab and make selinux work by running `touch /.autorelabel`

- daniel

-- 
Daniel Mach <dmach at redhat.com>
Release Engineering, Red Hat


More information about the devel mailing list