fhs-userenv: move mounts map

+4 -1
+4 -1
pkgs/build-support/build-fhs-userenv/chroot-user.rb
··· 11 11 ['/var', nil], 12 12 ['/run', nil], 13 13 ['/root', nil], 14 - ].map! { |x| [ x[0], x[1].nil? ? x[0].sub(/^\/*/, '') : x[1] ] } 14 + ] 15 15 16 16 # Create directories 17 17 mkdirs = ['tmp', ··· 67 67 abort "Usage: chrootenv swdir program args..." unless ARGV.length >= 2 68 68 swdir = Pathname.new ARGV[0] 69 69 execp = ARGV.drop 1 70 + 71 + # Set destination paths for mounts 72 + mounts.map! { |x| [x[0], x[1].nil? ? x[0].sub(/^\/*/, '') : x[1]] } 70 73 71 74 # Create temporary directory for root and chdir 72 75 root = Dir.mktmpdir 'chrootenv'