(command.CommandList children: [ (C {(default_mirror)} {(http) (Lit_Other ':') (//old-releases.ubuntu.com/ubuntu)}) (C {(mirror_style)} {(release)}) (C {(download_style)} {(apt)}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:LIBC spids:[15]) op: Equal rhs: {(libc6)} spids: [15] ) ] spids: [15] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.AndOr ops: [Op_DPipe] children: [ (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$ARCH'))} {(Lit_Other '=')} {(DQ (alpha))} {(Lit_Other ']')} ) (C {(Lit_Other '[')} {(DQ ($ VSub_DollarName '$ARCH'))} {(Lit_Other '=')} {(DQ (ia64))} {(Lit_Other ']')} ) ] ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:LIBC spids:[54]) op: Equal rhs: {(DQ (libc6.1))} spids: [54] ) ] spids: [54] ) ] spids: [16777215 51] ) ] spids: [16777215 59] ) (command.FuncDef name: work_out_debs body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:required spids:[71]) op: Equal rhs: { (DQ ( 'base-files base-passwd bash bsdutils build-essential coreutils debianutils diff dpkg dselect e2fslibs e2fsprogs fakeroot findutils gcc-3.3-base grep gzip hostname initscripts libacl1 libattr1 libblkid1 libc6 libcap1 libcomerr2 libdb1-compat libdb3 libgcc1 libncurses5 libpam-modules libpam-runtime libpam0g libss2 libstdc++5 libuuid1 login lsb-base mawk mount ncurses-base ncurses-bin perl-base sed slang1a-utf8 sysv-rc sysvinit tar util-linux zlib1g' ) ) } spids: [71] ) ] spids: [71] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:base spids:[78]) op: Equal rhs: { (DQ ( 'apt binutils cpio cpp cpp-3.3 dpkg-dev g++ g++-3.3 gcc gcc-3.3 libc6-dev libdb4.2 libgdbm3 libstdc++5-3.3-dev linux-kernel-headers make patch perl perl-modules' ) ) } spids: [78] ) ] spids: [78] ) (command.FuncDef name: without_package body: (command.BraceGroup children: [ (command.Pipeline children: [ (C {(echo)} {(DQ ($ VSub_Number '$2'))}) (C {(tr)} {(SQ <' '>)} {(SQ <'\\n'>)}) (C {(grep)} {(-v)} {(DQ ('^') ($ VSub_Number '$1') (Lit_Other '$'))}) (C {(tr)} {(SQ <'\\n'>)} {(SQ <' '>)}) ] negated: F ) ] spids: [90] ) spids: [85 89] ) (command.FuncDef name: subst_package body: (command.BraceGroup children: [ (command.Pipeline children: [ (C {(echo)} {(DQ ($ VSub_Number '$3'))}) (C {(tr)} {(SQ <' '>)} {(SQ <'\\n'>)}) (C {(sed)} { (DQ ('s/^') ($ VSub_Number '$1') (Lit_Other '$') (/) ($ VSub_Number '$2') (/)) } ) (C {(tr)} {(SQ <'\\n'>)} {(SQ <' '>)}) ] negated: F ) ] spids: [144] ) spids: [139 143] ) (command.Case to_match: {($ VSub_DollarName '$ARCH')} arms: [ (case_arm pat_list:[{(DQ (amd64))}] spids:[202 205 208 16777215]) (case_arm pat_list:[{(DQ (i386))}] spids:[211 214 217 16777215]) (case_arm pat_list:[{(DQ (powerpc))}] spids:[220 223 226 16777215]) (case_arm pat_list: [{(DQ (alpha))}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:required spids:[240]) op: Equal rhs: { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(subst_package)} {(DQ (libc6))} {(DQ (libc6.1))} {(DQ ($ VSub_DollarName '$required'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [242 256] ) ) } spids: [240] ) ] spids: [240] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:base spids:[260]) op: Equal rhs: { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(subst_package)} {(DQ (libc6-dev))} {(DQ (libc6.1-dev))} {(DQ ($ VSub_DollarName '$base'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [262 276] ) ) } spids: [260] ) ] spids: [260] ) ] spids: [234 237 280 16777215] ) (case_arm pat_list: [{(DQ (ia64))}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:required spids:[289]) op: Equal rhs: { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(subst_package)} {(DQ (libc6))} {(DQ (libc6.1))} {(DQ ($ VSub_DollarName '$required'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [291 305] ) ) } spids: [289] ) ] spids: [289] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:base spids:[309]) op: Equal rhs: { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(subst_package)} {(DQ (libc6-dev))} {(DQ (libc6.1-dev))} {(DQ ($ VSub_DollarName '$base'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [311 325] ) ) } spids: [309] ) ] spids: [309] ) ] spids: [283 286 329 16777215] ) (case_arm pat_list:[{(Lit_Other '*')}] spids:[332 333 340 16777215]) ] spids: [195 199 343] ) ] spids: [67] ) spids: [62 66] ) (command.FuncDef name: install_debs body: (command.BraceGroup children: [(C {(first_stage_install)}) (C {(second_stage_install)})] spids: [353] ) spids: [348 352] ) (command.FuncDef name: first_stage_install body: (command.BraceGroup children: [ (C {(extract)} {($ VSub_DollarName '$required')}) (C {(mkdir)} {(-p)} {(DQ ($ VSub_DollarName '$TARGET') (/var/lib/dpkg))}) (command.SimpleCommand words: [{(Lit_Other ':')}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(DQ ($ VSub_DollarName '$TARGET') (/var/lib/dpkg/status))} ) ] ) (command.SimpleCommand words: [{(echo)}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(DQ ($ VSub_DollarName '$TARGET') (/var/lib/dpkg/available))} ) ] ) (C {(setup_etc)}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-e)} {(DQ ($ VSub_DollarName '$TARGET') (/etc/fstab))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (command.SimpleCommand words: [{(echo)} {(SQ <'# UNCONFIGURED FSTAB FOR BASE SYSTEM'>)}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(DQ ($ VSub_DollarName '$TARGET') (/etc/fstab))} ) ] ) (command.Sentence child: (C {(chown)} {(0) (Lit_Other ':') (0)} {(DQ ($ VSub_DollarName '$TARGET') (/etc/fstab))} ) terminator: <Op_Semi ';'> ) (C {(chmod)} {(644)} {(DQ ($ VSub_DollarName '$TARGET') (/etc/fstab))}) ] spids: [16777215 426] ) ] spids: [16777215 465] ) (C {(setup_devices)}) (command.FuncDef name: x_feign_install body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:pkg spids:[483]) op: Equal rhs: {(DQ ($ VSub_Number '$1'))} spids: [483] ) ] spids: [481] ) (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:deb spids:[491]) op: Equal rhs: { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [(C {(debfor)} {($ VSub_DollarName '$pkg')})] ) left_token: <Left_CommandSub '$('> spids: [493 497] ) ) } spids: [491] ) ] spids: [489] ) (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:ver spids:[503]) op: Equal rhs: { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(extract_deb_field)} { (DQ ($ VSub_DollarName '$TARGET') (/) ($ VSub_DollarName '$deb') ) } {(Version)} ) ] ) left_token: <Left_CommandSub '$('> spids: [505 515] ) ) } spids: [503] ) ] spids: [501] ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_DollarName '$TARGET') (/var/lib/dpkg/info))}) (command.SimpleCommand words: [ {(echo)} { (DQ ('Package: ') ($ VSub_DollarName '$pkg') ('\n') ('Version: ') ($ VSub_DollarName '$ver') ('\n') ('Status: install ok installed') ) } ] redirects: [ (redir.Redir op: <Redir_DGreat '>>'> fd: 16777215 arg_word: {(DQ ($ VSub_DollarName '$TARGET') (/var/lib/dpkg/status))} ) ] ) (C {(touch)} { (DQ ($ VSub_DollarName '$TARGET') (/var/lib/dpkg/info/) (${ VSub_Name pkg) (.list) ) } ) ] spids: [478] ) spids: [473 477] ) (C {(x_feign_install)} {(dpkg)}) ] spids: [369] ) spids: [364 368] ) (command.FuncDef name: second_stage_install body: (command.BraceGroup children: [ (command.FuncDef name: x_core_install body: (command.BraceGroup children: [ (command.Pipeline children: [ (C {(smallyes)} {(SQ )}) (C {(in_target)} {(dpkg)} {(--force-depends)} {(--install)} { (word_part.CommandSubPart command_list: (command.CommandList children: [(C {(debfor)} {(DQ ($ VSub_At '$@'))})] ) left_token: <Left_CommandSub '$('> spids: [607 613] ) } ) ] negated: F ) ] spids: [589] ) spids: [584 588] ) (command.FuncDef name: p body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:baseprog spids:[627]) op: Equal rhs: { (DQ (word_part.ArithSubPart anode: (arith_expr.ArithBinary op_id: Arith_Plus left: (arith_expr.ArithWord w:{($ VSub_DollarName '$baseprog')}) right: (arith_expr.ArithWord w: { (word_part.BracedVarSub token: <VSub_Number 1> suffix_op: (suffix_op.StringUnary op_id: VTest_ColonHyphen arg_word: {(1)} ) spids: [634 638] ) } ) ) spids: [629 640] ) ) } spids: [627] ) ] spids: [627] ) ] spids: [624] ) spids: [619 623] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:DEBIAN_FRONTEND spids:[648]) op: Equal rhs: {(noninteractive)} spids: [648] ) ] spids: [648] ) (C {(export)} {(DEBIAN_FRONTEND)}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:baseprog spids:[658]) op: Equal rhs: {(0)} spids: [658] ) ] spids: [658] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:bases spids:[662]) op: Equal rhs: {(40)} spids: [662] ) ] spids: [662] ) (C {(setup_proc)}) (C {(in_target)} {(/sbin/ldconfig)}) (command.Sentence child:(C {(p)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTCORE)} {(DQ ('Installing core packages'))} ) (C {(info)} {(INSTCORE)} {(DQ ('Installing core packages...'))}) (command.Sentence child:(C {(p)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTCORE)} {(DQ ('Installing core packages'))} ) (C {(ln)} {(-sf)} {(mawk)} {(DQ ($ VSub_DollarName '$TARGET') (/usr/bin/awk))}) (C {(x_core_install)} {(base-files)} {(base-passwd)}) (command.Sentence child:(C {(p)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTCORE)} {(DQ ('Installing core packages'))} ) (C {(x_core_install)} {(dpkg)}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-e)} {(DQ ($ VSub_DollarName '$TARGET') (/etc/localtime))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(ln)} {(-sf)} {(/usr/share/zoneinfo/UTC)} {(DQ ($ VSub_DollarName '$TARGET') (/etc/localtime))} ) ] spids: [16777215 784] ) ] spids: [16777215 799] ) (command.Sentence child:(C {(p)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTCORE)} {(DQ ('Installing core packages'))} ) (C {(x_core_install)} {($ VSub_DollarName '$LIBC')}) (command.Sentence child:(C {(p)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTCORE)} {(DQ ('Installing core packages'))} ) (C {(x_core_install)} {(perl-base)}) (command.Sentence child:(C {(p)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTCORE)} {(DQ ('Installing core packages'))} ) (C {(rm)} {(DQ ($ VSub_DollarName '$TARGET') (/usr/bin/awk))}) (C {(x_core_install)} {(mawk)}) (command.Sentence child:(C {(p)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTCORE)} {(DQ ('Installing core packages'))} ) (C {(info)} {(UNPACKREQ)} {(DQ ('Unpacking required packages...'))}) (command.Sentence child:(C {(p)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTCORE)} {(DQ ('Installing core packages'))} ) (command.Pipeline children: [ (C {(smallyes)} {(SQ )}) (C {(repeatn)} {(5)} {(in_target_failmsg)} {(UNPACK_REQ_FAIL_FIVE)} { (DQ ( 'Failure while unpacking required packages. This will be attempted up to five times.' ) ) } {(DQ )} {(dpkg)} {(--force-depends)} {(--unpack)} { (word_part.CommandSubPart command_list: (command.CommandList children: [(C {(debfor)} {($ VSub_DollarName '$required')})] ) left_token: <Left_CommandSub '$('> spids: [961 965] ) } ) ] negated: F ) (command.Sentence child:(C {(p)} {(10)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTCORE)} {(DQ ('Installing core packages'))} ) (C {(info)} {(CONFREQ)} {(DQ ('Configuring required packages...'))}) (C {(mv)} {(DQ ($ VSub_DollarName '$TARGET') (/sbin/start-stop-daemon))} {(DQ ($ VSub_DollarName '$TARGET') (/sbin/start-stop-daemon.REAL))} ) (command.SimpleCommand words: [ {(echo)} { (DQ ('#!/bin/sh\n') ('echo\n') ('echo ') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ('Warning: Fake start-stop-daemon called, doing nothing') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ) } ] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(DQ ($ VSub_DollarName '$TARGET') (/sbin/start-stop-daemon))} ) ] ) (C {(chmod)} {(755)} {(DQ ($ VSub_DollarName '$TARGET') (/sbin/start-stop-daemon))}) (C {(setup_dselect_method)} {(apt)}) (command.Sentence child:(C {(p)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTCORE)} {(DQ ('Installing core packages'))} ) (command.Pipeline children: [ (C {(smallyes)} {(SQ )}) (C {(in_target_failmsg)} {(CONF_REQ_FAIL)} {(DQ ('Failure while configuring required packages.'))} {(DQ )} {(dpkg)} {(--configure)} {(--pending)} {(--force-configure-any)} {(--force-depends)} ) ] negated: F ) (command.Sentence child:(C {(p)} {(10)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTCORE)} {(DQ ('Installing core packages'))} ) (C {(info)} {(INSTCORE)} {(DQ ('Installing base packages...'))}) (command.Sentence child:(C {(p)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTCORE)} {(DQ ('Installing core packages'))} ) (command.Pipeline children: [ (C {(smallyes)} {(SQ )}) (C {(repeatn)} {(5)} {(in_target_failmsg)} {(INST_BASE_FAIL_FIVE)} { (DQ ( 'Failure while installing base packages. This will be re-attempted up to five times.' ) ) } {(DQ )} {(dpkg)} {(--force-auto-select)} {(--force-overwrite)} {(--force-confold)} {(--skip-same-version)} {(--unpack)} { (word_part.CommandSubPart command_list: (command.CommandList children: [(C {(debfor)} {($ VSub_DollarName '$base')})] ) left_token: <Left_CommandSub '$('> spids: [1187 1191] ) } ) ] negated: F ) (command.Pipeline children: [ (C {(smallyes)} {(SQ )}) (C {(repeatn)} {(5)} {(in_target_failmsg)} {(CONF_BASE_FAIL_FIVE)} { (DQ ('Failure while configuring base packages. This will be attempted 5 times.')) } {(DQ )} {(dpkg)} {(--force-confold)} {(--skip-same-version)} {(--configure)} {(-a)} ) ] negated: F ) (command.Sentence child:(C {(p)} {(9)}) terminator:<Op_Semi ';'>) (C {(progress)} {($ VSub_DollarName '$baseprog')} {($ VSub_DollarName '$bases')} {(INSTCORE)} {(DQ ('Installing core packages'))} ) (C {(mv)} {(DQ ($ VSub_DollarName '$TARGET') (/sbin/start-stop-daemon.REAL))} {(DQ ($ VSub_DollarName '$TARGET') (/sbin/start-stop-daemon))} ) (C {(progress)} {($ VSub_DollarName '$bases')} {($ VSub_DollarName '$bases')} {(INSTCORE)} {(DQ ('Installing core packages'))} ) (C {(info)} {(BASESUCCESS)} {(DQ ('Base system installed successfully.'))}) ] spids: [581] ) spids: [576 580] ) ] )