Re: getting linux to mount a FAT16 part at boot time so I can giveit an initrd path?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jan> So you have two options. Either make your bootloader load it (it
Jan> should be able to if it knows about "multiboot specification") or
Jan> turn the FAT16 partition into kind of initrd - the pivot_root
Jan> syscall is not limited to be used from ramdisk.

OK, I'm going to try for the second option.  So I guess I tell linux
to make the FAT16 its root partition, then in linuxrc, I mount the
image loopback and do pivot_root to it.  Sounds quite elegant.  One
question:  how do I mount the image loopback?  Is there some kind of
losetup(2) system call?

Thanks,
Dave

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux