(CommandList children: [ (Case to_match: {($ VSub_Name "$ARCH")} arms: [ (case_arm pat_list: [{(amd64)} {(i386)} {(powerpc)} {(sparc)}] action: [(C {(default_mirror)} {(http) (Lit_Other ":") (//archive.ubuntu.com/ubuntu)})] spids: [7 14 24 -1] ) (case_arm pat_list: [{(Lit_Other "*")}] action: [(C {(default_mirror)} {(http) (Lit_Other ":") (//ports.ubuntu.com/ubuntu-ports)})] spids: [27 28 38 -1] ) ] spids: [0 4 40] ) (C {(mirror_style)} {(release)}) (C {(download_style)} {(apt)}) (C {(finddebs_style)} {(from-indices)}) (C {(variants)} {(-)} {(buildd)}) (Case to_match: {($ VSub_Name "$ARCH")} arms: [ (case_arm pat_list: [{(alpha)} {(ia64)}] action: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:LIBC) op:Equal rhs:{(DQ (libc6.1))} spids:[73])] spids: [73] ) ] spids: [68 71 78 -1] ) (case_arm pat_list: [{(Lit_Other "*")}] action: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:LIBC) op:Equal rhs:{(DQ (libc6))} spids:[84])] spids: [84] ) ] spids: [81 82 89 -1] ) ] spids: [61 65 91] ) (FuncDef name: work_out_debs body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:required) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [(C {(get_debs)} {(Priority) (Lit_Other ":")} {(required)})] ) left_token: <Left_CommandSub "$("> spids: [104 111] ) ) } spids: [102] ) ] spids: [102] ) (If arms: [ (if_arm cond: [(Sentence child:(C {(doing_variant)} {(-)}) terminator:<Op_Semi ";">)] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:base) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (C {(get_debs)} {(Priority) (Lit_Other ":")} {(important)}) ] ) left_token: <Left_CommandSub "$("> spids: [136 143] ) ) } spids: [134] ) ] spids: [134] ) ] spids: [-1 123] ) (if_arm cond: [(Sentence child:(C {(doing_variant)} {(buildd)}) terminator:<Op_Semi ";">)] action: [ (FuncDef name: add body: (BraceGroup children: [ (Sentence child: (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$ARCH"))} {(Lit_Other "=")} {(DQ ($ VSub_Number "$1"))} {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) ] action: [ (Sentence child: (C {(eval)} { (DQ ($ VSub_Number "$2") ("=") (EscapedLiteralPart token: <Lit_EscapedChar "\\\""> ) (EscapedLiteralPart token:<Lit_EscapedChar "\\$">) ($ VSub_Number "$2") (" ") ($ VSub_Number "$3") (EscapedLiteralPart token: <Lit_EscapedChar "\\\""> ) ) } ) terminator: <Op_Semi ";"> ) ] spids: [-1 190] ) ] spids: [-1 206] ) terminator: <Op_Semi ";"> ) ] spids: [171] ) spids: [166 170] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:base) op: Equal rhs: { (DQ ("apt binutils cpio cpp cpp-4.0 dpkg-dev g++ g++-4.0 gcc gcc-4.0 ") (${ VSub_Name LIBC) ("-dev libgdbm3 libstdc++6 libstdc++6-4.0-dev linux-kernel-headers make patch perl perl-modules") ) } spids: [213] ) ] spids: [213] ) (C {(add)} {(ia64)} {(base)} {(DQ (libunwind7-dev))}) (C {(add)} {(sparc)} {(base)} {(DQ (lib64gcc1))}) (C {(add)} {(sparc)} {(base)} {(DQ (libc6-dev-sparc64))}) (C {(add)} {(sparc)} {(base)} {(DQ (libc6-sparc64))}) ] spids: [147 154] ) ] spids: [-1 268] ) ] spids: [99] ) spids: [94 98] ) (FuncDef name: first_stage_install body: (BraceGroup children: [ (C {(extract)} {($ VSub_Name "$required")}) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg))}) (SimpleCommand words: [{(Lit_Other ":")}] redirects: [ (Redir op_id: Redir_Great fd: -1 arg_word: {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/status))} spids: [299] ) ] ) (SimpleCommand words: [{(Lit_Other ":")}] redirects: [ (Redir op_id: Redir_Great fd: -1 arg_word: {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/available))} spids: [308] ) ] ) (C {(setup_etc)}) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other "[")} {(KW_Bang "!")} {(-e)} {(DQ ($ VSub_Name "$TARGET") (/etc/fstab))} {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) ] action: [ (SimpleCommand words: [{(echo)} {(SQ <"# UNCONFIGURED FSTAB FOR BASE SYSTEM">)}] redirects: [ (Redir op_id: Redir_Great fd: -1 arg_word: {(DQ ($ VSub_Name "$TARGET") (/etc/fstab))} spids: [344] ) ] ) (Sentence child: (C {(chown)} {(0) (Lit_Other ":") (0)} {(DQ ($ VSub_Name "$TARGET") (/etc/fstab))} ) terminator: <Op_Semi ";"> ) (C {(chmod)} {(644)} {(DQ ($ VSub_Name "$TARGET") (/etc/fstab))}) ] spids: [-1 335] ) ] spids: [-1 374] ) (C {(setup_devices)}) (FuncDef name: x_feign_install body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:pkg) op: Equal rhs: {(DQ ($ VSub_Number "$1"))} spids: [392] ) ] spids: [390] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:deb) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [(C {(debfor)} {($ VSub_Name "$pkg")})] ) left_token: <Left_CommandSub "$("> spids: [402 406] ) ) } spids: [400] ) ] spids: [398] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:ver) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (C {(extract_deb_field)} {(DQ ($ VSub_Name "$TARGET") (/) ($ VSub_Name "$deb"))} {(Version)} ) ] ) left_token: <Left_CommandSub "$("> spids: [414 424] ) ) } spids: [412] ) ] spids: [410] ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/info))}) (SimpleCommand words: [ {(echo)} { (DQ ("Package: ") ($ VSub_Name "$pkg") ("\n") ("Version: ") ($ VSub_Name "$ver") ("\n") ("Status: install ok installed") ) } ] redirects: [ (Redir op_id: Redir_DGreat fd: -1 arg_word: {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/status))} spids: [453] ) ] ) (C {(touch)} {(DQ ($ VSub_Name "$TARGET") (/var/lib/dpkg/info/) (${ VSub_Name pkg) (.list))} ) ] spids: [387] ) spids: [382 386] ) (C {(x_feign_install)} {(dpkg)}) ] spids: [278] ) spids: [273 277] ) (FuncDef name: second_stage_install body: (BraceGroup children: [ (FuncDef name: x_core_install body: (BraceGroup children: [ (Pipeline children: [ (C {(smallyes)} {(SQ )}) (C {(in_target)} {(dpkg)} {(--force-depends)} {(--install)} { (CommandSubPart command_list: (CommandList children: [(C {(debfor)} {(DQ ($ VSub_At "$@"))})] ) left_token: <Left_CommandSub "$("> spids: [516 522] ) } ) ] negated: False ) ] spids: [498] ) spids: [493 497] ) (FuncDef name: p body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:baseprog) op: Equal rhs: { (DQ (ArithSubPart anode: (ArithBinary op_id: Arith_Plus left: (ArithWord w:{($ VSub_Name "$baseprog")}) right: (ArithWord w: { (BracedVarSub token: <VSub_Number 1> suffix_op: (StringUnary op_id: VTest_ColonHyphen arg_word: {(1)} ) spids: [544 548] ) } ) ) spids: [539 550] ) ) } spids: [537] ) ] spids: [537] ) ] spids: [534] ) spids: [529 533] ) (C {(setup_proc)}) (C {(in_target)} {(/sbin/ldconfig)}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:DEBIAN_FRONTEND) op: Equal rhs: {(noninteractive)} spids: [567] ) ] spids: [567] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:DEBCONF_NONINTERACTIVE_SEEN) op: Equal rhs: {(true)} spids: [571] ) ] spids: [571] ) (C {(export)} {(DEBIAN_FRONTEND)} {(DEBCONF_NONINTERACTIVE_SEEN)}) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:baseprog) op:Equal rhs:{(0)} spids:[583])] spids: [583] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:bases) op:Equal rhs:{(7)} spids:[587])] spids: [587] ) (Sentence child:(C {(p)}) terminator:<Op_Semi ";">) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(info)} {(INSTCORE)} {(DQ ("Installing core packages..."))}) (Sentence child:(C {(p)}) terminator:<Op_Semi ";">) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(ln)} {(-sf)} {(mawk)} {(DQ ($ VSub_Name "$TARGET") (/usr/bin/awk))}) (C {(x_core_install)} {(base-files)} {(base-passwd)}) (Sentence child:(C {(p)}) terminator:<Op_Semi ";">) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(x_core_install)} {(dpkg)}) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other "[")} {(KW_Bang "!")} {(-e)} {(DQ ($ VSub_Name "$TARGET") (/etc/localtime))} {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) ] action: [ (C {(ln)} {(-sf)} {(/usr/share/zoneinfo/UTC)} {(DQ ($ VSub_Name "$TARGET") (/etc/localtime))} ) ] spids: [-1 700] ) ] spids: [-1 715] ) (Sentence child:(C {(p)}) terminator:<Op_Semi ";">) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(x_core_install)} {($ VSub_Name "$LIBC")}) (Sentence child:(C {(p)}) terminator:<Op_Semi ";">) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(x_core_install)} {(perl-base)}) (Sentence child:(C {(p)}) terminator:<Op_Semi ";">) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (C {(rm)} {(DQ ($ VSub_Name "$TARGET") (/usr/bin/awk))}) (C {(x_core_install)} {(mawk)}) (Sentence child:(C {(p)}) terminator:<Op_Semi ";">) (C {(progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(INSTCORE)} {(DQ ("Installing core packages"))} ) (If arms: [ (if_arm cond: [(Sentence child:(C {(doing_variant)} {(-)}) terminator:<Op_Semi ";">)] action: [(C {(x_core_install)} {(debconf)})] spids: [-1 828] ) ] spids: [-1 836] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:baseprog) op:Equal rhs:{(0)} spids:[840])] spids: [840] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:bases) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (Sentence child: (C {(set)} {(--)} {($ VSub_Name "$required")}) terminator: <Op_Semi ";"> ) (C {(echo)} {($ VSub_Pound "$#")}) ] ) left_token: <Left_CommandSub "$("> spids: [845 856] ) } spids: [844] ) ] spids: [844] ) (C {(info)} {(UNPACKREQ)} {(DQ ("Unpacking required packages..."))}) (Pipeline children: [ (C {(smallyes)} {(SQ )}) (Subshell child: (Pipeline children: [ (SimpleCommand words: [ {(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)} {(--status-fd)} {(8)} {(--force-depends)} {(--unpack)} { (CommandSubPart command_list: (CommandList children: [(C {(debfor)} {($ VSub_Name "$required")})] ) left_token: <Left_CommandSub "$("> spids: [906 910] ) } ] redirects: [ (Redir op_id: Redir_GreatAnd fd: 8 arg_word: {(1)} spids: [912] ) (Redir op_id: Redir_GreatAnd fd: 1 arg_word: {(7)} spids: [915] ) ] ) (C {(dpkg_progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(UNPACKREQ)} {(DQ ("Unpacking required packages"))} {(UNPACKING)} ) ] negated: False ) redirects: [(Redir op_id:Redir_GreatAnd fd:7 arg_word:{(1)} spids:[936])] spids: [878 934] ) ] negated: False ) (C {(info)} {(CONFREQ)} {(DQ ("Configuring required packages..."))}) (C {(mv)} {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon))} {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon.REAL))} ) (SimpleCommand words: [ {(echo)} { (DQ ("#!/bin/sh\n") ("echo\n") ("echo ") (EscapedLiteralPart token:<Lit_EscapedChar "\\\"">) ("Warning: Fake start-stop-daemon called, doing nothing") (EscapedLiteralPart token:<Lit_EscapedChar "\\\"">) ) } ] redirects: [ (Redir op_id: Redir_Great fd: -1 arg_word: {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon))} spids: [976] ) ] ) (C {(chmod)} {(755)} {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon))}) (C {(setup_dselect_method)} {(apt)}) (Pipeline children: [ (C {(smallyes)} {(SQ )}) (Subshell child: (Pipeline children: [ (SimpleCommand words: [ {(in_target_failmsg)} {(CONF_REQ_FAIL)} {(DQ ("Failure while configuring required packages."))} {(DQ )} {(dpkg)} {(--status-fd)} {(8)} {(--configure)} {(--pending)} {(--force-configure-any)} {(--force-depends)} ] redirects: [ (Redir op_id: Redir_GreatAnd fd: 8 arg_word: {(1)} spids: [1037] ) (Redir op_id: Redir_GreatAnd fd: 1 arg_word: {(7)} spids: [1040] ) ] ) (C {(dpkg_progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(CONFREQ)} {(DQ ("Configuring required packages"))} {(CONFIGURING)} ) ] negated: False ) redirects: [(Redir op_id:Redir_GreatAnd fd:7 arg_word:{(1)} spids:[1061])] spids: [1009 1059] ) ] negated: False ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:baseprog) op:Equal rhs:{(0)} spids:[1066])] spids: [1066] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:bases) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (Sentence child: (C {(set)} {(--)} {($ VSub_Name "$base")}) terminator: <Op_Semi ";"> ) (C {(echo)} {($ VSub_Pound "$#")}) ] ) left_token: <Left_CommandSub "$("> spids: [1072 1083] ) ) } spids: [1070] ) ] spids: [1070] ) (C {(info)} {(UNPACKBASE)} {(DQ ("Unpacking the base system..."))}) (Pipeline children: [ (C {(smallyes)} {(SQ )}) (Subshell child: (Pipeline children: [ (SimpleCommand words: [ {(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)} {(--status-fd)} {(8)} {(--force-auto-select)} {(--force-overwrite)} {(--force-confold)} {(--skip-same-version)} {(--unpack)} { (CommandSubPart command_list: (CommandList children: [(C {(debfor)} {($ VSub_Name "$base")})] ) left_token: <Left_CommandSub "$("> spids: [1140 1144] ) } ] redirects: [ (Redir op_id: Redir_GreatAnd fd: 8 arg_word: {(1)} spids: [1146] ) (Redir op_id: Redir_GreatAnd fd: 1 arg_word: {(7)} spids: [1149] ) ] ) (C {(dpkg_progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(UNPACKBASE)} {(DQ ("Unpacking base system"))} {(UNPACKING)} ) ] negated: False ) redirects: [(Redir op_id:Redir_GreatAnd fd:7 arg_word:{(1)} spids:[1170])] spids: [1106 1168] ) ] negated: False ) (C {(info)} {(CONFBASE)} {(DQ ("Configuring the base system..."))}) (Pipeline children: [ (C {(smallyes)} {(SQ )}) (Subshell child: (Pipeline children: [ (SimpleCommand words: [ {(repeatn)} {(5)} {(in_target_failmsg)} {(CONF_BASE_FAIL_FIVE)} { (DQ ( "Failure while configuring base packages. This will be attempted 5 times." ) ) } {(DQ )} {(dpkg)} {(--status-fd)} {(8)} {(--force-confold)} {(--skip-same-version)} {(--configure)} {(-a)} ] redirects: [ (Redir op_id: Redir_GreatAnd fd: 8 arg_word: {(1)} spids: [1225] ) (Redir op_id: Redir_GreatAnd fd: 1 arg_word: {(7)} spids: [1228] ) ] ) (C {(dpkg_progress)} {($ VSub_Name "$baseprog")} {($ VSub_Name "$bases")} {(CONFBASE)} {(DQ ("Configuring base system"))} {(CONFIGURING)} ) ] negated: False ) redirects: [(Redir op_id:Redir_GreatAnd fd:7 arg_word:{(1)} spids:[1249])] spids: [1193 1247] ) ] negated: False ) (C {(mv)} {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon.REAL))} {(DQ ($ VSub_Name "$TARGET") (/sbin/start-stop-daemon))} ) (C {(progress)} {($ VSub_Name "$bases")} {($ VSub_Name "$bases")} {(CONFBASE)} {(DQ ("Configuring base system"))} ) (C {(info)} {(BASESUCCESS)} {(DQ ("Base system installed successfully."))}) ] spids: [490] ) spids: [485 489] ) ] )