source: live-build/trunk/fuentes/debian/patches/ubuntu-label-disks.patch @ 900

Last change on this file since 900 was 900, checked in by kbut, 4 years ago

add original source

File size: 1.2 KB
  • scripts/build/lb_binary_rootfs

    Description: Apply LB_HDD_LABEL to disks produced in lb_binary_rootfs.
    Author: Daniel Watkins <daniel.watkins@canonical.com>
    
    old new case "${LB_CHROOT_FILESYSTEM}" in 
    129129                                        FAKE_MTAB="true"
    130130                                fi
    131131
    132                                 Chroot chroot "mkfs.${LB_CHROOT_FILESYSTEM} -F -b 1024 -i 8192 -m 0 filesystem.${LB_CHROOT_FILESYSTEM}"
     132                                Chroot chroot "mkfs.${LB_CHROOT_FILESYSTEM} -F -b 1024 -i 8192 -m 0 -L ${LB_HDD_LABEL} filesystem.${LB_CHROOT_FILESYSTEM}"
    133133
    134134                                mkdir -p filesystem.tmp
    135135                                ${LB_ROOT_COMMAND} mount -o loop chroot/filesystem.${LB_CHROOT_FILESYSTEM} filesystem.tmp
    case "${LB_CHROOT_FILESYSTEM}" in 
    199199
    200200                        false)
    201201                                dd if=/dev/zero of=binary/${INITFS}/filesystem.${LB_CHROOT_FILESYSTEM} bs=1024k count=0 seek=${REAL_DIM}
    202                                 mkfs.${LB_CHROOT_FILESYSTEM} -F -b 1024 -i 8192 -m 0 binary/${INITFS}/filesystem.${LB_CHROOT_FILESYSTEM}
     202                                mkfs.${LB_CHROOT_FILESYSTEM} -F -b 1024 -i 8192 -m 0 -L ${LB_HDD_LABEL} binary/${INITFS}/filesystem.${LB_CHROOT_FILESYSTEM}
    203203
    204204                                mkdir -p filesystem.tmp
    205205                                ${LB_ROOT_COMMAND} mount -o loop binary/${INITFS}/filesystem.${LB_CHROOT_FILESYSTEM} filesystem.tmp
Note: See TracBrowser for help on using the repository browser.