Home
last modified time | relevance | path

Searched full:rootfs (Results 1 – 25 of 843) sorted by relevance

12345678910>>...34

/openbmc/openbmc/poky/scripts/lib/wic/canned-wks/
H A Ddirectdisk-multi-rootfs.wks1 # short-description: Create multi rootfs image using rootfs plugin
2 # long-description: Creates a partitioned disk image with two rootfs partitions
3 # using rootfs plugin.
6 # - indirect rootfs references to image recipe(s):
8 # --rootfs-dir rootfs1=core-image-minimal
9 # --rootfs-dir rootfs2=core-image-minimal-dev
11 # - or paths to rootfs directories:
12 # wic create directdisk-multi-rootfs \
13 # --rootfs-dir rootfs1=tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs/
14 # --rootfs-dir rootfs2=tmp/work/qemux86_64-poky-linux/core-image-minimal-dev/1.0-r0/rootfs/
[all …]
/openbmc/openbmc/poky/meta/recipes-core/initrdscripts/files/
H A Dinit-live.sh5 ROOT_MOUNT="/rootfs"
6 ROOT_IMAGE="rootfs.img"
167 fatal "Could not mount rootfs image"
188 mkdir -p /rootfs.ro /rootfs.rw
189 if ! mount -n --move $ROOT_MOUNT /rootfs.ro; then
190 rm -rf /rootfs.ro /rootfs.rw
191 fatal "Could not move rootfs mount point"
193 mount -t tmpfs -o rw,noatime,mode=755 tmpfs /rootfs.rw
194 mkdir -p /rootfs.rw/upperdir /rootfs.rw/work
195 …mount -t overlay overlay -o "lowerdir=/rootfs.ro,upperdir=/rootfs.rw/upperdir,workdir=/rootfs.rw/w…
[all …]
H A Dinit-install-efi-testfs.sh14 # 50% for the second rootfs
91 rootfs=/dev/${device}${part_prefix}2
96 echo "Rootfs partition size: $rootfs_size MB ($rootfs)"
109 echo "Creating rootfs partition on $rootfs"
120 echo "Formatting $rootfs to ext3..."
121 mkfs.ext3 -L "platform" $rootfs
130 mount $rootfs /ssd
133 echo "Copying rootfs files..."
170 sed -i "s@linux /vmlinuz *@linux /vmlinuz root=$rootfs rw $rootwait quiet @" $GRUBCFG
186 sed -i "s@options *@options root=$rootfs rw $rootwait quiet @" $SYSTEMDBOOT_CFGS
H A Dinit-install-testfs.sh116 rootfs=/dev/${device}${part_prefix}2
121 echo "Rootfs partition size: $rootfs_size MB ($rootfs)"
133 echo "Creating rootfs partition on $rootfs"
144 echo "Formatting $rootfs to ext3..."
145 mkfs.ext3 -L "rootfs" $rootfs
155 mount $rootfs /tgt_root
158 echo "Copying rootfs files..."
188 linux /vmlinuz root=$rootfs $rootwait rw $5 $3 $4 quiet
206 echo "kernel /vmlinuz root=$rootfs rw $3 $4 quiet" >> /boot/grub/menu.lst
H A Dinit-install-efi.sh13 # remove rootfs.img ($2) from the size if it exists, as its not installed to /boot
174 rootfs=${device}${part_prefix}2
179 echo "Rootfs partition size: $rootfs_size MB ($rootfs)"
192 echo "Creating rootfs partition on $rootfs"
202 while [ $C -ne 3 ] && [ ! -e $bootfs -o ! -e $rootfs -o ! -e $swap ]; do
210 echo "Formatting $rootfs to ext4..."
211 mkfs.ext4 $rootfs
221 mount $rootfs /tgt_root
223 echo "Copying rootfs files..."
248 root_part_uuid=$(blkid -o value -s PARTUUID ${rootfs})
[all …]
H A Dinit-install.sh12 # remove rootfs.img ($2) from the size if it exists, as its not installed to /boot
183 rootfs=${device}${part_prefix}2
188 rootfs=${device}${part_prefix}3
195 echo "Rootfs partition size: $rootfs_size MB ($rootfs)"
215 echo "Creating rootfs partition on $rootfs"
227 while [ $C -ne 3 ] && [ ! -e $bootfs -o ! -e $rootfs -o ! -e $swap ]; do
235 echo "Formatting $rootfs to ext4..."
236 mkfs.ext4 $rootfs
246 mount $rootfs /tgt_root
248 echo "Copying rootfs files..."
[all …]
/openbmc/openbmc/poky/meta-selftest/recipes-test/postinst/
H A Dpostinst_1.0.bb6 PACKAGES = "${PN}-rootfs ${PN}-delayed-a ${PN}-delayed-b ${PN}-rootfs-failing"
8 ALLOW_EMPTY:${PN}-rootfs = "1"
11 ALLOW_EMPTY:${PN}-rootfs-failing = "1"
13 RDEPENDS:${PN}-delayed-a = "${PN}-rootfs"
18 # At rootfs time touch $TESTDIR/rootfs. Errors if the file already exists, or
20 pkg_postinst:${PN}-rootfs () {
24 echo "${PN}-rootfs should have finished at rootfs time"
28 if [ -e $D${TESTDIR}/rootfs ]; then
29 echo "$D${TESTDIR}/rootfs exists, but should not"
34 touch $D${TESTDIR}/rootfs
[all …]
/openbmc/openbmc/poky/scripts/lib/wic/
H A Dpartition.py93 Calculate the required size of rootfs taking into consideration
96 `actual_rootfs_size` is larger than fixed-size rootfs.
102 raise WicError("Actual rootfs size (%d kB) is larger than "
154 rootfs = "%s/fs_%s.%s.%s" % (cr_workdir, self.label,
156 if os.path.isfile(rootfs):
157 os.remove(rootfs)
161 method(rootfs, oe_builddir, native_sysroot)
162 self.source_file = rootfs
210 Prepare content for a rootfs partition i.e. create a partition
211 and fill it from a /rootfs dir.
[all …]
/openbmc/openbmc/poky/meta/recipes-core/initrdscripts/
H A Dinitramfs-framework_1.0.bb13 file://rootfs \
32 install -m 0755 ${S}/rootfs ${D}/init.d/90-rootfs
53 # overlayroot needs to run after rootfs module but before finish
68 initramfs-module-rootfs \
77 # the rootfs, like 90-rootfs. To replace that default, use
78 # BAD_RECOMMENDATIONS += "initramfs-module-rootfs" in your
80 # something that runs earlier (for example, a 89-my-rootfs)
81 # and mounts the rootfs. Then 90-rootfs will proceed immediately.
82 RRECOMMENDS:${PN}-base += "initramfs-module-rootfs"
104 SUMMARY:initramfs-module-rootfs = "initramfs support for locating and mounting the root partition"
[all …]
/openbmc/linux/drivers/gpu/drm/ci/
H A Dlava-submit.sh7 # Try to use the kernel and rootfs built in mainline first, so we're more
16 mkdir -p results/job-rootfs-overlay/
18 cp artifacts/ci-common/capture-devcoredump.sh results/job-rootfs-overlay/
19 cp artifacts/ci-common/init-*.sh results/job-rootfs-overlay/
20 cp artifacts/ci-common/intel-gpu-freq.sh results/job-rootfs-overlay/
21 cp "$SCRIPTS_DIR"/setup-test-env.sh results/job-rootfs-overlay/
26 artifacts/ci-common/generate-env.sh | tee results/job-rootfs-overlay/set-job-env-vars.sh
29 tar zcf job-rootfs-overlay.tar.gz -C results/job-rootfs-overlay/ .
30 ci-fairy s3cp --token-file "${CI_JOB_JWT_FILE}" job-rootfs-overlay.tar.gz "https://${JOB_ROOTFS_OVE…
39 --rootfs-url-prefix "https://${BASE_SYSTEM_HOST_PATH}" \
[all …]
/openbmc/openbmc/poky/meta/classes-recipe/
H A Dfs-uuid.bbclass7 # Extract UUID from ${ROOTFS}, which must have been built
12 rootfs = d.getVar('ROOTFS')
13 output = subprocess.check_output(['tune2fs', '-l', rootfs], text=True)
17 bb.note('UUID of %s: %s' % (rootfs, uuid))
19 bb.fatal('Could not determine filesystem UUID of %s' % rootfs)
21 # Replace the special <<uuid-of-rootfs>> inside a string (like the
23 # actual UUID of the rootfs. Does nothing if the special string
26 UUID_PLACEHOLDER = '<<uuid-of-rootfs>>'
H A Dimage-live.bbclass12 # an initrd and a rootfs image. These can be written to harddisks directly and
24 # ${ROOTFS} - indicates a filesystem image to include as the root filesystem (optional)
34 …N'), d.getVar('LIVE_ROOTFS_TYPE').replace('-', '_').split('.')[0]) if d.getVar('ROOTFS') else ''} \
44 ROOTFS ?= "${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.${LIVE_ROOTFS_TYPE}"
76 if [ -s "${ROOTFS}" ]; then
77 install -m 0644 ${ROOTFS} $1/rootfs.img
117 # Check the size of ${ISODIR}/rootfs.img, use mkisofs -iso-level 3
122 if [ -n "${ROOTFS}" ] && [ -s "${ROOTFS}" ]; then
123 rootfs_img_size=`stat -c '%s' ${ISODIR}/rootfs.img`
126 bbnote "${ISODIR}/rootfs.img execeeds 3.8GB, using '-iso-level 3' for mkisofs"
[all …]
H A Dcore-image.bbclass10 # this gives us working (console only) rootfs.
30 …dev-pkgs - development packages (headers, etc.) for all installed packages in the rootfs
31 # - dbg-pkgs - debug symbol packages for all installed packages in the rootfs
32 # - lic-pkgs - license packages for all installed pacakges in the rootfs, requires
34 # - doc-pkgs - documentation packages for all installed packages in the rootfs
37 # - read-only-rootfs - tweaks an image to support read-only rootfs
38 # - stateless-rootfs - systemctl-native not run, image populated by systemd at runtime
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Drootfspostcommandstests.py13 Check if shadow image rootfs files are tidy.
16 'tidy_shadowutils_files' rootfs postprocess command (via
23 test image and return its sysconf rootfs path.
39 "rootfs post process command is not the set SORT_PASSWD_POSTPROCESS_COMMAND.")
41 rootfs = vars["IMAGE_ROOTFS"]
42 self.assertIsNotNone(rootfs)
47 return oe.path.join(rootfs, sysconfdir)
51 Test that the rootfs doesn't include any known shadow backup files.
71 'the rootfs: %s' % found)
H A Druntime_test.py301 rootfs = vars["IMAGE_ROOTFS"]
302 self.assertIsNotNone(rootfs)
306 hosttestdir = oe.path.join(rootfs, sysconfdir, "postinst-test")
320 self.assertTrue(os.path.isfile(os.path.join(hosttestdir, "rootfs")),
321 "rootfs state file was not created")
326 for filename in ("rootfs", "delayed-a", "delayed-b"):
336 scripts are called when rootfs is created and also test
342 present on rootfs dir.
345 Expected: The files are successfully created during rootfs and boot
357 scripts are called when rootfs is created and also test
[all …]
/openbmc/openbmc/poky/meta-selftest/recipes-test/images/
H A Dwic-image-minimal.wks2 # long-description: This image contains boot partition and 3 rootfs partitions
6 part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024 --use-uuid
7 part /media --source rootfs --rootfs-dir=wic-image-minimal --ondisk sda --fstype=ext4 --label uuid-…
8 part /mnt --source rootfs --rootfs-dir=wic-image-minimal --ondisk sda --fstype=ext4 --label core --…
/openbmc/u-boot/board/keymile/scripts/
H A DREADME7 run develop : setup environment to configure for rootfs via nfs
8 run ramfs : setup environment to configure for rootfs in ram
14 This file defines variables for working with rootfs via nfs for powerpc and
19 This file defines architecture specific variables for working with rootfs via
25 This file defines variables for working with rootfs inside the ram for powerpc
30 This file defines architecture specific variables for working with rootfs inside
/openbmc/openbmc/poky/scripts/esdk-tools/
H A Drunqemu64 ROOTFS - the rootfs image file or nfsroot directory to use
140 'ROOTFS',
155 self.rootfs = ''
158 # Found in the same places as the rootfs, with or without one of
356 self.rootfs = p
360 self.rootfs = m.group(2)
378 …elif os.path.isfile(p) and ('-image-' in os.path.basename(p) or '.rootfs.' in os.path.basename(p)):
379 self.rootfs = p
388 m = re.search('.*\\.(.*)$', self.rootfs)
393 qb = re.sub('\\.' + fst + "$", '.qemuboot.conf', self.rootfs)
[all …]
/openbmc/openbmc/poky/scripts/
H A Drunqemu64 ROOTFS - the rootfs image file or nfsroot directory to use
140 'ROOTFS',
155 self.rootfs = ''
158 # Found in the same places as the rootfs, with or without one of
356 self.rootfs = p
360 self.rootfs = m.group(2)
378 …elif os.path.isfile(p) and ('-image-' in os.path.basename(p) or '.rootfs.' in os.path.basename(p)):
379 self.rootfs = p
388 m = re.search('.*\\.(.*)$', self.rootfs)
393 qb = re.sub('\\.' + fst + "$", '.qemuboot.conf', self.rootfs)
[all …]
/openbmc/openbmc/poky/meta/recipes-core/initrdscripts/initramfs-framework/
H A Doverlayroot15 # accessing the original, unmodified rootfs at /rofs after boot.
17 # It relies on the initramfs-module-rootfs to mount the original
24 # This module needs to be executed after the initramfs-module-rootfs
30 # If something goes wrong while running this module, the rootfs
40 # We get OLDROOT from the rootfs module
41 OLDROOT="/rootfs"
58 # The following is borrowed from rootfs-postcommands.bbclass
59 # This basically looks at the real rootfs mounting options and
62 # Tweak the mount option and fs_passno for rootfs in fstab
H A Dfinish12 fatal "ERROR: There's no '/dev' on rootfs."
17 # the next rootfs from modifying the block device. Ignore ROOT_DISK,
29 debug "Moving basic mounts onto rootfs"
38 debug "Moving /dev, /proc and /sys onto rootfs..."
46 debug "No rootfs has been set"
/openbmc/linux/include/linux/
H A Dbcm963xx_tag.h37 * The broadcom firmware assumes the rootfs starts the image,
38 * therefore uses the rootfs start (flash_image_address)
43 * needs to be rootfs + deadcode (jffs2 EOF marker)
66 * (kernel for OpenWRT, rootfs for stock firmware)
69 /* 106-115: Size of rootfs */
85 /* 196-199: kernel+rootfs CRC32 */
91 /* 220-223: CRC32 of rootfs partition */
/openbmc/openbmc/poky/meta/lib/oe/
H A Drootfs.py16 class Rootfs(object, metaclass=ABCMeta): class
114 bb.note(" Renaming the original rootfs...")
121 bb.note(" Creating debug rootfs...")
173 bb.note(" Rename debug rootfs...")
180 bb.note(" Restoring original rootfs...")
192 bb.note("###### Generate rootfs #######")
231 if bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs",
234 "read-only-rootfs-delayed-postinsts",
239 "offline and rootfs is read-only: %s" %
271 image_rorfs = bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs",
[all …]
/openbmc/u-boot/board/gateworks/gw_ventana/
H A DREADME88 Ventana > setenv mtdparts mtdparts=nand:14m(spl),2m(uboot),1m(env),-(rootfs)
100 - rootfs: the rest
132 # create a partition table with a single rootfs partition starting at 1MB
139 sudo tar xvf rootfs.tar.gz -C /media/root
150 - rootfs : 1MB-
211 using rootfs (ubi), kernel (uImage), and dtb from the network:
214 Ventana > setenv mtdparts 'mtdparts=nand:14m(spl),2m(uboot),1m(env),1m(args),10m(kernel),-(rootfs)'
216 # flash rootfs (at 28MB)
218 nand erase.part rootfs && nand write ${loadaddr} rootfs ${filesize}
229 # set kernel args for the console and rootfs (used by spl export)
[all …]
/openbmc/openbmc/poky/scripts/lib/wic/plugins/source/
H A Drootfs.py7 # This implements the 'rootfs' source plugin class for 'wic'
30 Populate partition content from a rootfs directory.
33 name = 'rootfs'
46 logger.error("%s: Must point inside the rootfs: %s" % (cmd, path))
65 def __get_pseudo(native_sysroot, rootfs, pseudo_dir): argument
68 pseudo += "export PSEUDO_PASSWD=%s;" % rootfs
84 raise WicError("Couldn't find --rootfs-dir, exiting")
93 raise WicError("Couldn't find --rootfs-dir=%s connection or "
111 # We need a new rootfs directory we can safely modify without
113 new_rootfs = os.path.realpath(os.path.join(cr_workdir, "rootfs%d" % part.lineno))

12345678910>>...34