1. 04 Mar, 2019 2 commits
  2. 25 Dec, 2018 1 commit
  3. 24 Dec, 2018 1 commit
  4. 29 Oct, 2018 2 commits
  5. 21 May, 2018 2 commits
  6. 07 Aug, 2017 1 commit
    • Michael Shigorin's avatar
      tar2fs: chgrp and failsafe kpartx · aa7f2d84
      Michael Shigorin authored
      The current state made vm images belong to root group,
      no reason to not change those to the primary group of
      the user building an image.
      
      kpartx -d -s could fail in some circumstances,
      make a safety cleanup call more verbose.
      aa7f2d84
  7. 02 Aug, 2017 2 commits
    • Michael Shigorin's avatar
      tar2fs: add e2k arch support · 35dd2008
      Michael Shigorin authored
      Somewhat ARM-like with only the bootloader bits
      standing out; Elbrus 2000 firmware can read ext2
      and boot the kernel directly.
      35dd2008
    • Michael Shigorin's avatar
      build-vm, tar2fs: unify kver handling · 3d7a0c5c
      Michael Shigorin authored
      No need to deduce kernel version again,
      just save it in a temporary file.
      
      The main reason to change what worked is
      that e2k kernel-image package has Linux bits
      named as image-$kver and not vmlinuz-$kver;
      the guessing logic taking all of this into
      account resulted in non-aesthetic patch.
      
      NB: there's a duplicating script within
          kernel feature; it wasn't easy to avoid
          this and it might differ when handling
          multiple kernels, I didn't think much
          about this now as vm images tend to ship
          with the sole one.
      3d7a0c5c
  8. 02 Mar, 2016 1 commit
  9. 31 May, 2015 1 commit
    • Michael Shigorin's avatar
      tar2fs: fixed broken sfdisk use · 0cdc8a7d
      Michael Shigorin authored
      Yet another age old bug: `sfdisk -l' is mimicking what
      a person does by hand but the script is rather interested
      in what `sfdisk -g' provides, that is, geometry.
      
      And it's stupid enough to only grok C locale.
      0cdc8a7d
  10. 16 Feb, 2015 2 commits
    • Michael Shigorin's avatar
      tar2fs: wait a bit · 5542415e
      Michael Shigorin authored
      Looks like there's a race condition somewhere: this script
      will fail to clean up after itself when considerable background
      load is inflicted upon the host it's running on (e.g. LA ~16
      on a 8-core, single-disk system).
      
      Note that this commit is NOT enough to win that race
      but just a step in the right direction...
      5542415e
    • Michael Shigorin's avatar
      tar2fs: add ahci module · e238973c
      Michael Shigorin authored
      It's unwise to skip the common storage driver,
      and vagrant (which uses virtualbox by default)
      is likely to crash and burn as well.
      e238973c
  11. 02 Feb, 2015 1 commit
    • Michael Shigorin's avatar
      tar2fs: fix check for lilo binary · 7b0501ae
      Michael Shigorin authored
      The check introduced by commit d7689f30 while rewriting tar2vm
      (which presumed x86) was subtly broken: it checked for *host*
      binary before preparing *chroot* configuration file for it.
      
      Wonder how many build servers run lilo over here that this BUG
      has managed to evade attention for almost two years...
      7b0501ae
  12. 20 Mar, 2014 1 commit
  13. 03 Mar, 2014 1 commit
  14. 22 Jul, 2013 1 commit
  15. 15 Jul, 2013 1 commit
  16. 17 Jun, 2013 1 commit
    • Michael Shigorin's avatar
      tar2vm: rewrote as tar2fs · d7689f30
      Michael Shigorin authored
      Overview of the changes:
      - ARM support: separate ext2 /boot, no LILO
      - avoid race condition with devmapper
      - trap ERR so that -e in shebang doesn't result in extra cleanup hassle
      - configurable root filesystem type (ext4 by default)
      - jumps through parted hoops
      
      Details:
      
      1. LILO is x86-specific while the rest of the script can be used
         to prepare e.g. Marvell ArmadaXP or CuBox images; we can generally
         count on uboot supporting ext2 for relatively sane platforms but
         not ext4 that would be a better root filesystem performance-wise.
      
      2. Apparently /dev/mapper/loopXpY can be still missing at the time
         when kpartx returns and pop up a bit later... sit there, wait
         and check for it.
      
      3. If something went wrong with any command of the script it would bail out
         due to -e in shebang; it is now better to clean up the loopback device
         and its mappings in this situation either.
      
      4. One size doesn't fit all, really.
      
      5. The parted sizing was sloppy as in broken, now it's just half insane.
         Someone's decision to stick units and auto-alignment knobs into
         a single one was apparently hilarious...
      
         http://www.gnu.org/software/parted/manual/parted.html#unit
      
      Manual loop/dm cleanup is described in documentation just in case.
      
      /boot size meter is suboptimal in terms of additional I/O incurred,
      will be most likely rewritten to make use of advance "du -s".
      d7689f30