(command.CommandList
  children: [
    (command.Case
      to_match: {($ VSub_DollarName '$ARCH')}
      arms: [
        (case_arm
          pat_list: [{(amd64)} {(i386)}]
          action: [(C {(default_mirror)} {(http) (Lit_Other ':') (//archive.ubuntu.com/ubuntu)})]
          spids: [7 10 20 16777215]
        )
        (case_arm
          pat_list: [{(sparc)}]
          action: [
            (command.Case
              to_match: {($ VSub_DollarName '$SUITE')}
              arms: [
                (case_arm
                  pat_list: [{(gutsy)}]
                  action: [
                    (C {(default_mirror)} {(http) (Lit_Other ':') (//archive.ubuntu.com/ubuntu)})
                  ]
                  spids: [34 35 45 16777215]
                )
                (case_arm
                  pat_list: [{(Lit_Other '*')}]
                  action: [
                    (C {(default_mirror)} {(http) (Lit_Other ':') (//ports.ubuntu.com/ubuntu-ports)})
                  ]
                  spids: [48 49 59 16777215]
                )
              ]
              spids: [27 31 62]
            )
          ]
          spids: [23 24 65 16777215]
        )
        (case_arm
          pat_list: [{(Lit_Other '*')}]
          action: [(C {(default_mirror)} {(http) (Lit_Other ':') (//ports.ubuntu.com/ubuntu-ports)})]
          spids: [68 69 79 16777215]
        )
      ]
      spids: [0 4 81]
    )
    (C {(mirror_style)} {(release)})
    (C {(download_style)} {(apt)})
    (C {(finddebs_style)} {(from-indices)})
    (C {(variants)} {(-)} {(buildd)} {(fakechroot)} {(minbase)})
    (C {(keyring)} {(/usr/share/keyrings/ubuntu-archive-keyring.gpg)})
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: (C {(doing_variant)} {(fakechroot)})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (command.AndOr
              ops: [Op_DPipe]
              children: [
                (C {(test)} {(DQ ($ VSub_DollarName '$FAKECHROOT'))} {(Lit_Other '=')} {(DQ (true))})
                (C {(error)} {(1)} {(FAKECHROOTREQ)} 
                  {(DQ ('This variant requires fakechroot environment to be started'))}
                )
              ]
            )
          ]
          spids: [16777215 117]
        )
      ]
      spids: [16777215 144]
    )
    (command.Case
      to_match: {($ VSub_DollarName '$ARCH')}
      arms: [
        (case_arm
          pat_list: [{(alpha)} {(ia64)}]
          action: [
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:LIBC spids:[159])
                  op: Equal
                  rhs: {(DQ (libc6.1))}
                  spids: [159]
                )
              ]
              spids: [159]
            )
          ]
          spids: [154 157 164 16777215]
        )
        (case_arm
          pat_list: [{(kfreebsd-) (Lit_Other '*')}]
          action: [
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:LIBC spids:[171])
                  op: Equal
                  rhs: {(DQ (libc0.1))}
                  spids: [171]
                )
              ]
              spids: [171]
            )
          ]
          spids: [167 169 176 16777215]
        )
        (case_arm
          pat_list: [{(hurd-) (Lit_Other '*')}]
          action: [
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:LIBC spids:[183])
                  op: Equal
                  rhs: {(DQ (libc0.3))}
                  spids: [183]
                )
              ]
              spids: [183]
            )
          ]
          spids: [179 181 188 16777215]
        )
        (case_arm
          pat_list: [{(Lit_Other '*')}]
          action: [
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:LIBC spids:[194])
                  op: Equal
                  rhs: {(DQ (libc6))}
                  spids: [194]
                )
              ]
              spids: [194]
            )
          ]
          spids: [191 192 199 16777215]
        )
      ]
      spids: [147 151 201]
    )
    (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:[212])
                  op: Equal
                  rhs: 
                    {
                      (DQ 
                        (word_part.CommandSubPart
                          command_list: 
                            (command.CommandList
                              children: [(C {(get_debs)} {(Priority) (Lit_Other ':')} {(required)})]
                            )
                          left_token: <Left_CommandSub '$('>
                          spids: [214 221]
                        )
                      )
                    }
                  spids: [212]
                )
              ]
              spids: [212]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [(command.Sentence child:(C {(doing_variant)} {(-)}) terminator:<Op_Semi ';'>)]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:base spids:[244])
                          op: Equal
                          rhs: 
                            {
                              (DQ 
                                (word_part.CommandSubPart
                                  command_list: 
                                    (command.CommandList
                                      children: [
                                        (C {(get_debs)} {(Priority) (Lit_Other ':')} {(important)})
                                      ]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [246 253]
                                )
                              )
                            }
                          spids: [244]
                        )
                      ]
                      spids: [244]
                    )
                  ]
                  spids: [16777215 233]
                )
                (if_arm
                  cond: [
                    (command.Sentence
                      child: (C {(doing_variant)} {(buildd)})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:base spids:[267])
                          op: Equal
                          rhs: 
                            {
                              (DQ 
                                (word_part.CommandSubPart
                                  command_list: 
                                    (command.CommandList
                                      children: [
                                        (C {(get_debs)} {(Build-Essential) (Lit_Other ':')} {(yes)})
                                      ]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [269 276]
                                )
                              )
                            }
                          spids: [267]
                        )
                      ]
                      spids: [267]
                    )
                  ]
                  spids: [257 264]
                )
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.AndOr
                          ops: [Op_DPipe]
                          children: [
                            (C {(doing_variant)} {(fakechroot)})
                            (C {(doing_variant)} {(minbase)})
                          ]
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:base spids:[296])
                          op: Equal
                          rhs: {(DQ (apt))}
                          spids: [296]
                        )
                      ]
                      spids: [296]
                    )
                  ]
                  spids: [280 293]
                )
              ]
              spids: [16777215 302]
            )
            (command.Case
              to_match: {($ VSub_DollarName '$MIRRORS')}
              arms: [
                (case_arm
                  pat_list: [{(https) (Lit_Other ':') (//) (Lit_Other '*')}]
                  action: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:base spids:[320])
                          op: Equal
                          rhs: 
                            {
                              (DQ ($ VSub_DollarName '$base') (' apt-transport-https ca-certificates'))
                            }
                          spids: [320]
                        )
                      ]
                      spids: [320]
                    )
                  ]
                  spids: [313 317 327 16777215]
                )
              ]
              spids: [306 310 330]
            )
          ]
          spids: [209]
        )
      spids: [204 208]
    )
    (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: [{(Lit_Other ':')}]
              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 397]
                )
              ]
              spids: [16777215 436]
            )
            (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:[454])
                          op: Equal
                          rhs: {(DQ ($ VSub_Number '$1'))}
                          spids: [454]
                        )
                      ]
                      spids: [452]
                    )
                    (command.Assignment
                      keyword: Assign_Local
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:deb spids:[462])
                          op: Equal
                          rhs: 
                            {
                              (DQ 
                                (word_part.CommandSubPart
                                  command_list: 
                                    (command.CommandList
                                      children: [(C {(debfor)} {($ VSub_DollarName '$pkg')})]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [464 468]
                                )
                              )
                            }
                          spids: [462]
                        )
                      ]
                      spids: [460]
                    )
                    (command.Assignment
                      keyword: Assign_Local
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:ver spids:[474])
                          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: [476 486]
                                )
                              )
                            }
                          spids: [474]
                        )
                      ]
                      spids: [472]
                    )
                    (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: [449]
                )
              spids: [444 448]
            )
            (C {(x_feign_install)} {(dpkg)})
          ]
          spids: [340]
        )
      spids: [335 339]
    )
    (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: [578 584]
                            )
                          }
                        )
                      ]
                      negated: F
                    )
                  ]
                  spids: [560]
                )
              spids: [555 559]
            )
            (command.FuncDef
              name: p
              body: 
                (command.BraceGroup
                  children: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:baseprog spids:[599])
                          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: [606 610]
                                              )
                                            }
                                        )
                                    )
                                  spids: [601 612]
                                )
                              )
                            }
                          spids: [599]
                        )
                      ]
                      spids: [599]
                    )
                  ]
                  spids: [596]
                )
              spids: [591 595]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: (C {(doing_variant)} {(fakechroot)})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [(C {(setup_proc_fakechroot)})]
                  spids: [16777215 627]
                )
              ]
              else_action: [(C {(setup_proc)}) (C {(in_target)} {(/sbin/ldconfig)})]
              spids: [633 644]
            )
            (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]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:DEBCONF_NONINTERACTIVE_SEEN spids:[652])
                  op: Equal
                  rhs: {(true)}
                  spids: [652]
                )
              ]
              spids: [652]
            )
            (C {(export)} {(DEBIAN_FRONTEND)} {(DEBCONF_NONINTERACTIVE_SEEN)})
            (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: {(7)}
                  spids: [668]
                )
              ]
              spids: [668]
            )
            (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-passwd)})
            (C {(x_core_install)} {(base-files)})
            (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/Etc/UTC)} 
                      {(DQ ($ VSub_DollarName '$TARGET') (/etc/localtime))}
                    )
                  ]
                  spids: [16777215 784]
                )
              ]
              spids: [16777215 799]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: (C {(doing_variant)} {(fakechroot)})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [(C {(install_fakechroot_tools)})]
                  spids: [16777215 810]
                )
              ]
              spids: [16777215 816]
            )
            (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'))}
            )
            (command.If
              arms: [
                (if_arm
                  cond: [(command.Sentence child:(C {(doing_variant)} {(-)}) terminator:<Op_Semi ';'>)]
                  action: [(C {(x_core_install)} {(debconf)})]
                  spids: [16777215 929]
                )
              ]
              spids: [16777215 937]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:baseprog spids:[941])
                  op: Equal
                  rhs: {(0)}
                  spids: [941]
                )
              ]
              spids: [941]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:bases spids:[945])
                  op: Equal
                  rhs: 
                    {
                      (word_part.CommandSubPart
                        command_list: 
                          (command.CommandList
                            children: [
                              (command.Sentence
                                child: (C {(set)} {(--)} {($ VSub_DollarName '$required')})
                                terminator: <Op_Semi ';'>
                              )
                              (C {(echo)} {($ VSub_Pound '$#')})
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [946 957]
                      )
                    }
                  spids: [945]
                )
              ]
              spids: [945]
            )
            (C {(info)} {(UNPACKREQ)} {(DQ ('Unpacking required packages...'))})
            (command.Pipeline
              children: [
                (C {(smallyes)} {(SQ )})
                (command.Subshell
                  child: 
                    (command.Pipeline
                      children: [
                        (command.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)}
                            {
                              (word_part.CommandSubPart
                                command_list: 
                                  (command.CommandList
                                    children: [(C {(debfor)} {($ VSub_DollarName '$required')})]
                                  )
                                left_token: <Left_CommandSub '$('>
                                spids: [1007 1011]
                              )
                            }
                          ]
                          redirects: [
                            (redir.Redir
                              op: <Redir_GreatAnd '8>&'>
                              fd: 8
                              arg_word: {(1)}
                            )
                            (redir.Redir
                              op: <Redir_GreatAnd '1>&'>
                              fd: 1
                              arg_word: {(7)}
                            )
                          ]
                        )
                        (C {(dpkg_progress)} {($ VSub_DollarName '$baseprog')} 
                          {($ VSub_DollarName '$bases')} {(UNPACKREQ)} {(DQ ('Unpacking required packages'))} {(UNPACKING)}
                        )
                      ]
                      negated: F
                    )
                  redirects: [(redir.Redir op:<Redir_GreatAnd '7>&'> fd:7 arg_word:{(1)})]
                  spids: [979 1035]
                )
              ]
              negated: F
            )
            (C {(info)} {(CONFREQ)} {(DQ ('Configuring required packages...'))})
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: (C {(doing_variant)} {(fakechroot)})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (C {(sed)} {(-i)} {(SQ <'/dpkg.*--compare-versions/ s/\\<lt\\>/lt-nl/'>)} 
                      {(DQ ($ VSub_DollarName '$TARGET') (/var/lib/dpkg/info/initscripts.postinst))}
                    )
                  ]
                  spids: [16777215 1059]
                )
              ]
              spids: [16777215 1080]
            )
            (command.SimpleCommand
              words: [{(echo)} {(DQ ('#!/bin/sh\n') ('exit 101'))}]
              redirects: [
                (redir.Redir
                  op: <Redir_Great '>'>
                  fd: 16777215
                  arg_word: {(DQ ($ VSub_DollarName '$TARGET') (/usr/sbin/policy-rc.d))}
                )
              ]
            )
            (C {(chmod)} {(755)} {(DQ ($ VSub_DollarName '$TARGET') (/usr/sbin/policy-rc.d))})
            (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))})
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (C {(Lit_Other '[')} {(-x)} {(DQ ($ VSub_DollarName '$TARGET') (/sbin/initctl))} 
                          {(Lit_Other ']')}
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (C {(mv)} {(DQ ($ VSub_DollarName '$TARGET') (/sbin/initctl))} 
                      {(DQ ($ VSub_DollarName '$TARGET') (/sbin/initctl.REAL))}
                    )
                    (command.SimpleCommand
                      words: [
                        {(echo)}
                        {
                          (DQ ('#!/bin/sh\n') ('if [ ') 
                            (word_part.EscapedLiteralPart
                              token: <Lit_EscapedChar '\\"'>
                            ) (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\$'>) (1) 
                            (word_part.EscapedLiteralPart
                              token: <Lit_EscapedChar '\\"'>
                            ) (' = version ]; then exec /sbin/initctl.REAL ') 
                            (word_part.EscapedLiteralPart
                              token: <Lit_EscapedChar '\\"'>
                            ) (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\$'>) ('@') 
                            (word_part.EscapedLiteralPart
                              token: <Lit_EscapedChar '\\"'>
                            ) ('; fi\n') ('echo\n') ('echo ') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) 
                            ('Warning: Fake initctl called, doing nothing') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>)
                          )
                        }
                      ]
                      redirects: [
                        (redir.Redir
                          op: <Redir_Great '>'>
                          fd: 16777215
                          arg_word: {(DQ ($ VSub_DollarName '$TARGET') (/sbin/initctl))}
                        )
                      ]
                    )
                    (C {(chmod)} {(755)} {(DQ ($ VSub_DollarName '$TARGET') (/sbin/initctl))})
                  ]
                  spids: [16777215 1169]
                )
              ]
              spids: [16777215 1226]
            )
            (C {(setup_dselect_method)} {(apt)})
            (command.Pipeline
              children: [
                (C {(smallyes)} {(SQ )})
                (command.Subshell
                  child: 
                    (command.Pipeline
                      children: [
                        (command.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.Redir
                              op: <Redir_GreatAnd '8>&'>
                              fd: 8
                              arg_word: {(1)}
                            )
                            (redir.Redir
                              op: <Redir_GreatAnd '1>&'>
                              fd: 1
                              arg_word: {(7)}
                            )
                          ]
                        )
                        (C {(dpkg_progress)} {($ VSub_DollarName '$baseprog')} 
                          {($ VSub_DollarName '$bases')} {(CONFREQ)} {(DQ ('Configuring required packages'))} {(CONFIGURING)}
                        )
                      ]
                      negated: F
                    )
                  redirects: [(redir.Redir op:<Redir_GreatAnd '7>&'> fd:7 arg_word:{(1)})]
                  spids: [1244 1294]
                )
              ]
              negated: F
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:baseprog spids:[1301])
                  op: Equal
                  rhs: {(0)}
                  spids: [1301]
                )
              ]
              spids: [1301]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:bases spids:[1305])
                  op: Equal
                  rhs: 
                    {
                      (DQ 
                        (word_part.CommandSubPart
                          command_list: 
                            (command.CommandList
                              children: [
                                (command.Sentence
                                  child: (C {(set)} {(--)} {($ VSub_DollarName '$base')})
                                  terminator: <Op_Semi ';'>
                                )
                                (C {(echo)} {($ VSub_Pound '$#')})
                              ]
                            )
                          left_token: <Left_CommandSub '$('>
                          spids: [1307 1318]
                        )
                      )
                    }
                  spids: [1305]
                )
              ]
              spids: [1305]
            )
            (C {(info)} {(UNPACKBASE)} {(DQ ('Unpacking the base system...'))})
            (C {(setup_available)} {($ VSub_DollarName '$required')} {($ VSub_DollarName '$base')})
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:done_predeps spids:[1340])
                  op: Equal
                  rhs: (word.EmptyWord)
                  spids: [1340]
                )
              ]
              spids: [1340]
            )
            (command.WhileUntil
              keyword: <KW_While while>
              cond: [
                (command.Sentence
                  child: 
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:predep spids:[1345])
                          op: Equal
                          rhs: 
                            {
                              (word_part.CommandSubPart
                                command_list: 
                                  (command.CommandList
                                    children: [(C {(get_next_predep)})]
                                  )
                                left_token: <Left_CommandSub '$('>
                                spids: [1346 1348]
                              )
                            }
                          spids: [1345]
                        )
                      ]
                      spids: [1345]
                    )
                  terminator: <Op_Semi ';'>
                )
              ]
              body: 
                (command.DoGroup
                  children: [
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:predep spids:[1362])
                          op: Equal
                          rhs: 
                            {
                              (word_part.CommandSubPart
                                command_list: 
                                  (command.CommandList
                                    children: [
                                      (C {(without)} 
                                        {
                                          (DQ 
                                            (word_part.CommandSubPart
                                              command_list: 
                                                (command.CommandList
                                                  children: [
                                                    (C {(without)} 
                                                      {
                                                        (DQ 
                                                          (word_part.CommandSubPart
                                                            command_list: 
                                                              (command.CommandList
                                                                children: [
                                                                  (C {(resolve_deps)} 
                                                                    {($ VSub_DollarName '$predep')}
                                                                  )
                                                                ]
                                                              )
                                                            left_token: <Left_CommandSub '$('>
                                                            spids: [1371 1375]
                                                          )
                                                        )
                                                      } {(DQ ($ VSub_DollarName '$required'))}
                                                    )
                                                  ]
                                                )
                                              left_token: <Left_CommandSub '$('>
                                              spids: [1367 1381]
                                            )
                                          )
                                        } {(DQ ($ VSub_DollarName '$done_predeps'))}
                                      )
                                    ]
                                  )
                                left_token: <Left_CommandSub '$('>
                                spids: [1363 1387]
                              )
                            }
                          spids: [1362]
                        )
                      ]
                      spids: [1362]
                    )
                    (command.Sentence child:(C {(p)}) terminator:<Op_Semi ';'>)
                    (command.Pipeline
                      children: [
                        (C {(smallyes)} {(SQ )})
                        (C {(in_target)} {(dpkg)} {(--force-overwrite)} {(--force-confold)} 
                          {(--skip-same-version)} {(--install)} 
                          {
                            (word_part.CommandSubPart
                              command_list: 
                                (command.CommandList
                                  children: [(C {(debfor)} {($ VSub_DollarName '$predep')})]
                                )
                              left_token: <Left_CommandSub '$('>
                              spids: [1421 1425]
                            )
                          }
                        )
                      ]
                      negated: F
                    )
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:base spids:[1428])
                          op: Equal
                          rhs: 
                            {
                              (word_part.CommandSubPart
                                command_list: 
                                  (command.CommandList
                                    children: [
                                      (C {(without)} {(DQ ($ VSub_DollarName '$base'))} 
                                        {(DQ ($ VSub_DollarName '$predep'))}
                                      )
                                    ]
                                  )
                                left_token: <Left_CommandSub '$('>
                                spids: [1429 1439]
                              )
                            }
                          spids: [1428]
                        )
                      ]
                      spids: [1428]
                    )
                    (command.Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (lhs_expr.LhsName name:done_predeps spids:[1442])
                          op: Equal
                          rhs: 
                            {
                              (DQ ($ VSub_DollarName '$done_predeps') (' ') 
                                ($ VSub_DollarName '$predep')
                              )
                            }
                          spids: [1442]
                        )
                      ]
                      spids: [1442]
                    )
                  ]
                  spids: [1351 1450]
                )
            )
            (command.Pipeline
              children: [
                (C {(smallyes)} {(SQ )})
                (command.Subshell
                  child: 
                    (command.Pipeline
                      children: [
                        (command.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-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: [1494 1498]
                              )
                            }
                          ]
                          redirects: [
                            (redir.Redir
                              op: <Redir_GreatAnd '8>&'>
                              fd: 8
                              arg_word: {(1)}
                            )
                            (redir.Redir
                              op: <Redir_GreatAnd '1>&'>
                              fd: 1
                              arg_word: {(7)}
                            )
                          ]
                        )
                        (C {(dpkg_progress)} {($ VSub_DollarName '$baseprog')} 
                          {($ VSub_DollarName '$bases')} {(UNPACKBASE)} {(DQ ('Unpacking base system'))} {(UNPACKING)}
                        )
                      ]
                      negated: F
                    )
                  redirects: [(redir.Redir op:<Redir_GreatAnd '7>&'> fd:7 arg_word:{(1)})]
                  spids: [1462 1522]
                )
              ]
              negated: F
            )
            (C {(info)} {(CONFBASE)} {(DQ ('Configuring the base system...'))})
            (command.Pipeline
              children: [
                (C {(smallyes)} {(SQ )})
                (command.Subshell
                  child: 
                    (command.Pipeline
                      children: [
                        (command.SimpleCommand
                          words: [
                            {(repeatn)}
                            {(5)}
                            {(in_target_failmsg)}
                            {(CONF_BASE_FAIL_FIVE)}
                            {
                              (DQ 
                                (
'Failure while configuring base packages.  This will be re-attempted up to five times.'
                                )
                              )
                            }
                            {(DQ )}
                            {(dpkg)}
                            {(--status-fd)}
                            {(8)}
                            {(--force-confold)}
                            {(--skip-same-version)}
                            {(--configure)}
                            {(-a)}
                          ]
                          redirects: [
                            (redir.Redir
                              op: <Redir_GreatAnd '8>&'>
                              fd: 8
                              arg_word: {(1)}
                            )
                            (redir.Redir
                              op: <Redir_GreatAnd '1>&'>
                              fd: 1
                              arg_word: {(7)}
                            )
                          ]
                        )
                        (C {(dpkg_progress)} {($ VSub_DollarName '$baseprog')} 
                          {($ VSub_DollarName '$bases')} {(CONFBASE)} {(DQ ('Configuring base system'))} {(CONFIGURING)}
                        )
                      ]
                      negated: F
                    )
                  redirects: [(redir.Redir op:<Redir_GreatAnd '7>&'> fd:7 arg_word:{(1)})]
                  spids: [1547 1601]
                )
              ]
              negated: F
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (C {(Lit_Other '[')} {(-x)} 
                          {(DQ ($ VSub_DollarName '$TARGET') (/sbin/initctl.REAL))} {(Lit_Other ']')}
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (C {(mv)} {(DQ ($ VSub_DollarName '$TARGET') (/sbin/initctl.REAL))} 
                      {(DQ ($ VSub_DollarName '$TARGET') (/sbin/initctl))}
                    )
                  ]
                  spids: [16777215 1622]
                )
              ]
              spids: [16777215 1638]
            )
            (C {(mv)} {(DQ ($ VSub_DollarName '$TARGET') (/sbin/start-stop-daemon.REAL))} 
              {(DQ ($ VSub_DollarName '$TARGET') (/sbin/start-stop-daemon))}
            )
            (C {(rm)} {(-f)} {(DQ ($ VSub_DollarName '$TARGET') (/usr/sbin/policy-rc.d))})
            (C {(progress)} {($ VSub_DollarName '$bases')} {($ VSub_DollarName '$bases')} {(CONFBASE)} 
              {(DQ ('Configuring base system'))}
            )
            (C {(info)} {(BASESUCCESS)} {(DQ ('Base system installed successfully.'))})
          ]
          spids: [552]
        )
      spids: [547 551]
    )
  ]
)