source: live-build/trunk/fuentes/debian/patches/ubuntu-ext-inodes.patch @ 900

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

add original source

File size: 1.5 KB
  • scripts/build/lb_binary_rootfs

    Description: Upstream changes introduced in version 3.0~a24-1ubuntu13
     .
       * Mimic livecd-rootfs's handling of inodes on ext* filesystems to
         reduce the pain of resizing preinstalled images. (LP: #836810)
     .
       * This patch is a dirty hack, and needs some TLC and generalisation
         before it's reasonably upstreamable.
    Author: Adam Conrad <adconrad@ubuntu.com>
    Bug-Ubuntu: https://bugs.launchpad.net/bugs/836810
    Last-Update: 2012-08-20
    
    a b  
    129129                                        FAKE_MTAB="true"
    130130                                fi
    131131
    132                                 Chroot chroot "mkfs.${LB_CHROOT_FILESYSTEM} -F -b 1024 -N ${REAL_INODES} -m 0 filesystem.${LB_CHROOT_FILESYSTEM}"
     132                                Chroot chroot "mkfs.${LB_CHROOT_FILESYSTEM} -F -b 1024 -i 8192 -m 0 filesystem.${LB_CHROOT_FILESYSTEM}"
    133133
    134134                                mkdir -p filesystem.tmp
    135135                                ${LB_ROOT_COMMAND} mount -o loop chroot/filesystem.${LB_CHROOT_FILESYSTEM} filesystem.tmp
     
    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 -N ${REAL_INODES} -m 0 binary/${INITFS}/filesystem.${LB_CHROOT_FILESYSTEM}
     202                                mkfs.${LB_CHROOT_FILESYSTEM} -F -b 1024 -i 8192 -m 0 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.