Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>initramfs is a good answer to the userid groupid, permissioon problem. In your kernel source directory, there is scripts/gen_initramfs_list.sh.<br> This script allows you to build an initramfs archive from several sources. You can for example, specify :</p> <ul> <li><p>a directory : The files and directory found in this base directory will be at the root of your file system.</p></li> <li><p>a file liste : it is a text file, very useful to create directory, files and special device files. See example below</p></li> </ul> <p>If you develop as non root, and your rootfs is in rootfsdir, then probably the file in rootfsdir are owned by you. gen_initramfs_list can translate your uid, gid into 0, 0. Here is an exemple command line :</p> <pre><code>gen_initramfs_list -u $MYUID -o initramfs.gz rootfsdir/ device.txt </code></pre> <p>Where device.txt contains :</p> <pre><code># This is a very simple, default initramfs dir /dev 0755 0 0 nod /dev/console 0600 0 0 c 5 1 dir /root 0700 0 0 # file /kinit usr/kinit/kinit 0755 0 0 # slink /init kinit 0755 0 0 </code></pre> <p>Then you can use standard version control for your rootfsdir content, and add the device.txt file under version control, and here you are : content and file attribute are versionned :). </p> <p>I don't know if you can change the permission and uid/gid of a file in a directory source via a filelist source, but this would be a logical feature.<br> Of course you can start with minimal root fs, from which you mount your existing nfs_export.</p> <p>It is a common problem, and gen_initramfs_list is the tool to solve it.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload