(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:[70]) 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 passwd perl-base pkgstriptranslations python-minimal python2.4-minimal sed slang1a-utf8 sysv-rc sysvinit tar util-linux zlib1g' ) ) } spids: [70] ) ] spids: [70] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:base spids:[77]) 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: [77] ) ] spids: [77] ) (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: [89] ) spids: [84 88] ) (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: [143] ) spids: [138 142] ) (command.Case to_match: {($ VSub_DollarName '$ARCH')} arms: [ (case_arm pat_list:[{(DQ (amd64))}] spids:[201 204 207 16777215]) (case_arm pat_list:[{(DQ (i386))}] spids:[210 213 216 16777215]) (case_arm pat_list:[{(DQ (powerpc))}] spids:[219 222 225 16777215]) (case_arm pat_list: [{(DQ (ia64))}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:required spids:[234]) 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: [236 250] ) ) } spids: [234] ) ] spids: [234] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:base spids:[254]) 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: [256 270] ) ) } spids: [254] ) ] spids: [254] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:base spids:[274]) op: Equal rhs: {(DQ ($ VSub_DollarName '$base') (' libunwind7 libunwind7-dev'))} spids: [274] ) ] spids: [274] ) ] spids: [228 231 281 16777215] ) (case_arm pat_list: [{(DQ (alpha))}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:required spids:[295]) 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: [297 311] ) ) } spids: [295] ) ] spids: [295] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:base spids:[315]) 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: [317 331] ) ) } spids: [315] ) ] spids: [315] ) ] spids: [289 292 335 16777215] ) (case_arm pat_list:[{(Lit_Other '*')}] spids:[338 339 346 16777215]) ] spids: [194 198 349] ) ] spids: [67] ) spids: [62 66] ) (command.FuncDef name: install_debs body: (command.BraceGroup children: [(C {(first_stage_install)}) (C {(second_stage_install)})] spids: [359] ) spids: [354 358] ) (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 432] ) ] spids: [16777215 471] ) (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:[489]) op: Equal rhs: {(DQ ($ VSub_Number '$1'))} spids: [489] ) ] spids: [487] ) (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:deb spids:[497]) op: Equal rhs: { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [(C {(debfor)} {($ VSub_DollarName '$pkg')})] ) left_token: <Left_CommandSub '$('> spids: [499 503] ) ) } spids: [497] ) ] spids: [495] ) (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:ver spids:[509]) 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: [511 521] ) ) } spids: [509] ) ] spids: [507] ) (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: [484] ) spids: [479 483] ) (C {(x_feign_install)} {(dpkg)}) ] spids: [375] ) spids: [370 374] ) (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: [613 619] ) } ) ] negated: F ) ] spids: [595] ) spids: [590 594] ) (command.FuncDef name: p body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:baseprog spids:[633]) 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: [640 644] ) } ) ) spids: [635 646] ) ) } spids: [633] ) ] spids: [633] ) ] spids: [630] ) spids: [625 629] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:DEBIAN_FRONTEND spids:[654]) op: Equal rhs: {(noninteractive)} spids: [654] ) ] spids: [654] ) (C {(export)} {(DEBIAN_FRONTEND)}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:baseprog spids:[664]) op: Equal rhs: {(0)} spids: [664] ) ] spids: [664] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:bases spids:[668]) op: Equal rhs: {(40)} spids: [668] ) ] spids: [668] ) (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 790] ) ] spids: [16777215 805] ) (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: [967 971] ) } ) ] 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: [1193 1197] ) } ) ] 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: [587] ) spids: [582 586] ) ] )