penguins-eggs 10.0.38 → 10.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1498,5 +1498,5 @@
1498
1498
  ]
1499
1499
  }
1500
1500
  },
1501
- "version": "10.0.38"
1501
+ "version": "10.0.40"
1502
1502
  }
package/README.md CHANGED
@@ -491,7 +491,7 @@ EXAMPLES
491
491
  $ eggs adapt
492
492
  ```
493
493
 
494
- _See code: [src/commands/adapt.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/adapt.ts)_
494
+ _See code: [src/commands/adapt.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/adapt.ts)_
495
495
 
496
496
  ## `eggs analyze`
497
497
 
@@ -512,7 +512,7 @@ EXAMPLES
512
512
  sudo eggs analyze
513
513
  ```
514
514
 
515
- _See code: [src/commands/analyze.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/analyze.ts)_
515
+ _See code: [src/commands/analyze.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/analyze.ts)_
516
516
 
517
517
  ## `eggs autocomplete [SHELL]`
518
518
 
@@ -543,7 +543,7 @@ EXAMPLES
543
543
  $ eggs autocomplete --refresh-cache
544
544
  ```
545
545
 
546
- _See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.3/src/commands/autocomplete/index.ts)_
546
+ _See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.4/src/commands/autocomplete/index.ts)_
547
547
 
548
548
  ## `eggs calamares`
549
549
 
@@ -576,7 +576,7 @@ EXAMPLES
576
576
  sudo eggs calamares --remove
577
577
  ```
578
578
 
579
- _See code: [src/commands/calamares.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/calamares.ts)_
579
+ _See code: [src/commands/calamares.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/calamares.ts)_
580
580
 
581
581
  ## `eggs config`
582
582
 
@@ -603,7 +603,7 @@ EXAMPLES
603
603
  sudo eggs config --clean --nointeractive
604
604
  ```
605
605
 
606
- _See code: [src/commands/config.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/config.ts)_
606
+ _See code: [src/commands/config.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/config.ts)_
607
607
 
608
608
  ## `eggs cuckoo`
609
609
 
@@ -623,7 +623,7 @@ EXAMPLES
623
623
  sudo eggs cuckoo
624
624
  ```
625
625
 
626
- _See code: [src/commands/cuckoo.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/cuckoo.ts)_
626
+ _See code: [src/commands/cuckoo.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/cuckoo.ts)_
627
627
 
628
628
  ## `eggs dad`
629
629
 
@@ -651,7 +651,7 @@ EXAMPLES
651
651
  sudo dad --default
652
652
  ```
653
653
 
654
- _See code: [src/commands/dad.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/dad.ts)_
654
+ _See code: [src/commands/dad.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/dad.ts)_
655
655
 
656
656
  ## `eggs export deb`
657
657
 
@@ -678,7 +678,7 @@ EXAMPLES
678
678
  $ eggs export deb --all
679
679
  ```
680
680
 
681
- _See code: [src/commands/export/deb.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/export/deb.ts)_
681
+ _See code: [src/commands/export/deb.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/export/deb.ts)_
682
682
 
683
683
  ## `eggs export iso`
684
684
 
@@ -703,7 +703,7 @@ EXAMPLES
703
703
  $ eggs export iso --clean
704
704
  ```
705
705
 
706
- _See code: [src/commands/export/iso.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/export/iso.ts)_
706
+ _See code: [src/commands/export/iso.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/export/iso.ts)_
707
707
 
708
708
  ## `eggs help [COMMAND]`
709
709
 
@@ -723,7 +723,7 @@ DESCRIPTION
723
723
  Display help for eggs.
724
724
  ```
725
725
 
726
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.11/src/commands/help.ts)_
726
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.12/src/commands/help.ts)_
727
727
 
728
728
  ## `eggs install`
729
729
 
@@ -764,7 +764,7 @@ EXAMPLES
764
764
  sudo eggs install --chroot
765
765
  ```
766
766
 
767
- _See code: [src/commands/install.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/install.ts)_
767
+ _See code: [src/commands/install.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/install.ts)_
768
768
 
769
769
  ## `eggs kill`
770
770
 
@@ -787,7 +787,7 @@ EXAMPLES
787
787
  sudo eggs kill
788
788
  ```
789
789
 
790
- _See code: [src/commands/kill.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/kill.ts)_
790
+ _See code: [src/commands/kill.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/kill.ts)_
791
791
 
792
792
  ## `eggs krill`
793
793
 
@@ -847,7 +847,7 @@ EXAMPLES
847
847
  $ eggs auto
848
848
  ```
849
849
 
850
- _See code: [src/commands/love.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/love.ts)_
850
+ _See code: [src/commands/love.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/love.ts)_
851
851
 
852
852
  ## `eggs mom`
853
853
 
@@ -867,7 +867,7 @@ EXAMPLES
867
867
  $ eggs mom
868
868
  ```
869
869
 
870
- _See code: [src/commands/mom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/mom.ts)_
870
+ _See code: [src/commands/mom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/mom.ts)_
871
871
 
872
872
  ## `eggs produce`
873
873
 
@@ -924,7 +924,7 @@ EXAMPLES
924
924
  sudo eggs produce --excludes home # exclude ~/*
925
925
  ```
926
926
 
927
- _See code: [src/commands/produce.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/produce.ts)_
927
+ _See code: [src/commands/produce.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/produce.ts)_
928
928
 
929
929
  ## `eggs status`
930
930
 
@@ -945,7 +945,7 @@ EXAMPLES
945
945
  $ eggs status
946
946
  ```
947
947
 
948
- _See code: [src/commands/status.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/status.ts)_
948
+ _See code: [src/commands/status.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/status.ts)_
949
949
 
950
950
  ## `eggs syncfrom`
951
951
 
@@ -971,7 +971,7 @@ EXAMPLES
971
971
  sudo eggs syncfrom --file /path/to/luks-volume
972
972
  ```
973
973
 
974
- _See code: [src/commands/syncfrom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/syncfrom.ts)_
974
+ _See code: [src/commands/syncfrom.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/syncfrom.ts)_
975
975
 
976
976
  ## `eggs syncto`
977
977
 
@@ -998,7 +998,7 @@ EXAMPLES
998
998
  sudo eggs syncto --excludes
999
999
  ```
1000
1000
 
1001
- _See code: [src/commands/syncto.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/syncto.ts)_
1001
+ _See code: [src/commands/syncto.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/syncto.ts)_
1002
1002
 
1003
1003
  ## `eggs tools clean`
1004
1004
 
@@ -1020,7 +1020,7 @@ EXAMPLES
1020
1020
  sudo eggs tools clean
1021
1021
  ```
1022
1022
 
1023
- _See code: [src/commands/tools/clean.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/tools/clean.ts)_
1023
+ _See code: [src/commands/tools/clean.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/tools/clean.ts)_
1024
1024
 
1025
1025
  ## `eggs tools ppa`
1026
1026
 
@@ -1046,7 +1046,7 @@ EXAMPLES
1046
1046
  sudo eggs tools ppa --remove
1047
1047
  ```
1048
1048
 
1049
- _See code: [src/commands/tools/ppa.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/tools/ppa.ts)_
1049
+ _See code: [src/commands/tools/ppa.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/tools/ppa.ts)_
1050
1050
 
1051
1051
  ## `eggs tools skel`
1052
1052
 
@@ -1070,7 +1070,7 @@ EXAMPLES
1070
1070
  sudo eggs tools skel --user user-to-be-copied
1071
1071
  ```
1072
1072
 
1073
- _See code: [src/commands/tools/skel.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/tools/skel.ts)_
1073
+ _See code: [src/commands/tools/skel.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/tools/skel.ts)_
1074
1074
 
1075
1075
  ## `eggs tools stat`
1076
1076
 
@@ -1096,7 +1096,7 @@ EXAMPLES
1096
1096
  $ eggs tools stat --year
1097
1097
  ```
1098
1098
 
1099
- _See code: [src/commands/tools/stat.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/tools/stat.ts)_
1099
+ _See code: [src/commands/tools/stat.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/tools/stat.ts)_
1100
1100
 
1101
1101
  ## `eggs tools yolk`
1102
1102
 
@@ -1117,7 +1117,7 @@ EXAMPLES
1117
1117
  sudo eggs tools yolk
1118
1118
  ```
1119
1119
 
1120
- _See code: [src/commands/tools/yolk.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/tools/yolk.ts)_
1120
+ _See code: [src/commands/tools/yolk.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/tools/yolk.ts)_
1121
1121
 
1122
1122
  ## `eggs update`
1123
1123
 
@@ -1138,7 +1138,7 @@ EXAMPLES
1138
1138
  $ eggs update
1139
1139
  ```
1140
1140
 
1141
- _See code: [src/commands/update.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/update.ts)_
1141
+ _See code: [src/commands/update.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/update.ts)_
1142
1142
 
1143
1143
  ## `eggs version`
1144
1144
 
@@ -1158,7 +1158,7 @@ FLAG DESCRIPTIONS
1158
1158
  Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using.
1159
1159
  ```
1160
1160
 
1161
- _See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v2.2.12/src/commands/version.ts)_
1161
+ _See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v2.2.13/src/commands/version.ts)_
1162
1162
 
1163
1163
  ## `eggs wardrobe get [REPO]`
1164
1164
 
@@ -1184,7 +1184,7 @@ EXAMPLES
1184
1184
  $ eggs wardrobe get your-wardrobe
1185
1185
  ```
1186
1186
 
1187
- _See code: [src/commands/wardrobe/get.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/wardrobe/get.ts)_
1187
+ _See code: [src/commands/wardrobe/get.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/wardrobe/get.ts)_
1188
1188
 
1189
1189
  ## `eggs wardrobe list [REPO]`
1190
1190
 
@@ -1213,7 +1213,7 @@ EXAMPLES
1213
1213
  $ eggs wardrobe list --distro arch
1214
1214
  ```
1215
1215
 
1216
- _See code: [src/commands/wardrobe/list.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/wardrobe/list.ts)_
1216
+ _See code: [src/commands/wardrobe/list.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/wardrobe/list.ts)_
1217
1217
 
1218
1218
  ## `eggs wardrobe show [REPO]`
1219
1219
 
@@ -1243,7 +1243,7 @@ EXAMPLES
1243
1243
  $ eggs wardrobe show accessories/
1244
1244
  ```
1245
1245
 
1246
- _See code: [src/commands/wardrobe/show.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/wardrobe/show.ts)_
1246
+ _See code: [src/commands/wardrobe/show.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/wardrobe/show.ts)_
1247
1247
 
1248
1248
  ## `eggs wardrobe wear [REPO]`
1249
1249
 
@@ -1274,7 +1274,7 @@ EXAMPLES
1274
1274
  sudo eggs wardrobe wear wagtail/waydroid
1275
1275
  ```
1276
1276
 
1277
- _See code: [src/commands/wardrobe/wear.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.38/src/commands/wardrobe/wear.ts)_
1277
+ _See code: [src/commands/wardrobe/wear.ts](https://github.com/pieroproietti/penguins-eggs/blob/v10.0.40/src/commands/wardrobe/wear.ts)_
1278
1278
  <!-- commandsstop -->
1279
1279
 
1280
1280
  # penGUI
@@ -1296,7 +1296,8 @@ Some noteworthy documents include:
1296
1296
  - [Hens: Different Species](https://github.com/pieroproietti/penguins-eggs/blob/master//hens-different-species.md): A brief guide on using Penguins' Eggs in Debian, Arch, and Manjaro.
1297
1297
  - [Arch-naked](https://penguins-eggs.net/docs/Tutorial/archlinux-naked.html): A blog post detailing how to create an Arch naked live, install it, and customize the resulting system into a graphics development station.
1298
1298
 
1299
- If you have any questions or need further assistance, feel free to contact me via email at pieroproietti@gmail.com. You can also stay updated by following my [blog](https://penguins-eggs.net) or connecting with me on , [Telegram](https://t.me/penguins_eggs), [Facebook](https://www.facebook.com/groups/128861437762355/), [GitHub](https://github.com/pieroproietti/penguins-krill), [Jitsi](https://meet.jit.si/PenguinsEggsMeeting), [Reddit](https://www.reddit.com/user/Artisan61) or [Twitter](https://twitter.com/pieroproietti).
1299
+ If you have any questions or need further assistance, feel free to contact me via email at pieroproietti@gmail.com. You can also stay updated by following my [blog](https://penguins-eggs.net) or connecting with me on , [Telegram](https://t.me/penguins_eggs), [Mastodom](https://social.treehouse.systems/@artisan), [Facebook](https://www.facebook.com/groups/128861437762355/), [GitHub](https://github.com/pieroproietti/penguins-krill), [Jitsi](https://meet.jit.si/PenguinsEggsMeeting), [Reddit](https://www.reddit.com/user/Artisan61) or [Twitter](https://twitter.com/pieroproietti),
1300
+ [Mastodom](https://social.treehouse.systems/@artisan).
1300
1301
 
1301
1302
  ## A word of thanks
1302
1303
  * This README would not be so well cared for if not for the work of [Hosein Seilain](https://github.com/hosseinseilani) who spent his time revising and supplementing the text;
@@ -105,8 +105,9 @@
105
105
  distroLike: Ubuntu
106
106
  family: debian
107
107
  ids:
108
- - wilma # Linux Mint 22
109
- - devel # Rhino
108
+ - wilma # Linux Mint 22
109
+ - devel # Rhino
110
+ - abuntu # Abuntu
110
111
 
111
112
  #
112
113
  # ARCH
@@ -31,7 +31,8 @@
31
31
  # This is new behavior.
32
32
  #
33
33
  # The three combinations of legacy values are still supported.
34
- restartNowMode: user-unchecked
34
+ #restartNowMode: user-unchecked
35
+ restartNowEnabled: true
35
36
  restartNowChecked: true
36
37
  # If the checkbox is shown, and the checkbox is checked, then when
37
38
  # Calamares exits from the finished-page it will run this command.
@@ -143,7 +143,7 @@ defaultFileSystemType: "ext4"
143
143
  #
144
144
  # If not specified at all, uses *defaultFileSystemType* without a
145
145
  # warning (this matches traditional no-choice-available behavior best).
146
- availableFileSystemTypes: ["ext4"]
146
+ availableFileSystemTypes: ["ext4","btrfs"]
147
147
 
148
148
  # Show/hide LUKS related functionality in automated partitioning modes.
149
149
  # Disable this if you choose not to deploy early unlocking support in GRUB2
@@ -40,7 +40,7 @@ sequence:
40
40
  {{hasDisplaymanager}}displaymanager
41
41
  - networkcfg
42
42
  - hwclock
43
- - grubcfg
43
+ # grubcfg
44
44
  - bootloader
45
45
  - packages
46
46
  - luksbootkeyfile
@@ -87,3 +87,5 @@ prompt-install: false
87
87
  # YAML: boolean.
88
88
  dont-chroot: false
89
89
 
90
+ # preso da debian
91
+ quit-at-end: false
@@ -42,6 +42,10 @@ export default class Bleach {
42
42
  await exec('apk cache purge', echo);
43
43
  break;
44
44
  }
45
+ case 'fedora': {
46
+ await exec(`dnf clean all`, echo);
47
+ break;
48
+ }
45
49
  case 'opensuse': {
46
50
  await exec(`zypper clean`, echo);
47
51
  break;
@@ -96,8 +96,8 @@ export default class CliAutologin {
96
96
  content += lines[i] + '\n';
97
97
  }
98
98
  fs.writeFileSync(inittab, content, 'utf-8');
99
- await this.addIssue(distro, version, user, userPasswd, rootPasswd, chroot);
100
99
  await this.addMotd(distro, version, user, userPasswd, rootPasswd, chroot);
100
+ await this.addIssue(distro, version, user, userPasswd, rootPasswd, chroot);
101
101
  }
102
102
  }
103
103
  /**
@@ -111,13 +111,17 @@ export default class CliAutologin {
111
111
  */
112
112
  async addIssue(distro, version, user, userPasswd, rootPasswd, chroot = '/') {
113
113
  const fileIssue = `${chroot}/etc/issue`;
114
- this.msgRemove(fileIssue);
115
- const eggsIssue = fs.readFileSync(fileIssue, 'utf8');
116
- // eggsIssue += startMessage + '\n'
117
- // eggsIssue += `This is a ${distro}/${version} system created by Penguins' eggs.\n`
118
- // eggsIssue += 'You can login with user: ' + chalk.bold(user) + ' and password: ' + chalk.bold(userPasswd) + ', root password: ' + chalk.bold(rootPasswd) + '\n'
119
- // eggsIssue += stopMessage + '\n'
120
- fs.writeFileSync(fileIssue, eggsIssue);
114
+ if (fs.existsSync(fileIssue)) {
115
+ if (!fs.lstatSync(fileIssue).isSymbolicLink()) {
116
+ this.msgRemove(fileIssue);
117
+ let content = fs.readFileSync(fileIssue, 'utf8');
118
+ content += startMessage + '\n';
119
+ content += `This is a ${distro}/${version} system created by Penguins' eggs.\n`;
120
+ content += 'You can login with user: ' + chalk.bold(user) + ' and password: ' + chalk.bold(userPasswd) + ', root password: ' + chalk.bold(rootPasswd) + '\n';
121
+ content += stopMessage + '\n';
122
+ fs.writeFileSync(fileIssue, content);
123
+ }
124
+ }
121
125
  }
122
126
  /**
123
127
  *
@@ -148,11 +152,10 @@ export default class CliAutologin {
148
152
  eggsMotd += Utils.flag() + '\n';
149
153
  eggsMotd += 'You are logged as: ' + chalk.bold(user) + ' your password is: ' + chalk.bold(userPasswd) + ', root password: ' + chalk.bold(rootPasswd) + '\n\n';
150
154
  eggsMotd += 'install : ' + chalk.bold(installer) + '\n';
151
- eggsMotd += ' unattended : ' + chalk.bold('sudo eggs install --unattended # us configuration') + '\n';
152
- eggsMotd += ' chroot : ' + chalk.bold('sudo eggs install --chroot # chroot on installed before to end') + '\n';
153
- eggsMotd += 'PXE server : ' + chalk.bold('sudo eggs cuckoo') + '\n';
154
- eggsMotd += '(*) to get your custom unattended configuration: fork https://github.com/pieroproietti/penguins-wardrobe' + '\n';
155
- eggsMotd += ' create your configuration in /config and ask for a Pull Request' + '\n';
155
+ eggsMotd += ' --unattended : ' + chalk.bold('sudo eggs install --unattended') + '\n';
156
+ eggsMotd += ' --chroot : ' + chalk.bold('sudo eggs install --chroot') + '\n';
157
+ eggsMotd += ' --help : ' + chalk.bold('sudo eggs install --help') + '\n';
158
+ eggsMotd += '\n';
156
159
  eggsMotd += stopMessage + '\n';
157
160
  fs.writeFileSync(fileMotd, eggsMotd);
158
161
  }
@@ -170,7 +173,6 @@ export default class CliAutologin {
170
173
  if (fs.existsSync(dirOverride)) {
171
174
  shx.exec(`rm ${dirOverride} -rf`);
172
175
  }
173
- // shx.exec(`systemctl revert getty@.service`)
174
176
  this.msgRemove(`${chroot}/etc/motd`);
175
177
  this.msgRemove(`${chroot}/etc/issue`);
176
178
  }
@@ -210,8 +212,10 @@ export default class CliAutologin {
210
212
  }
211
213
  content += lines[i] + '\n';
212
214
  }
215
+ // motd
213
216
  fs.writeFileSync(inittab, content, 'utf-8');
214
217
  this.msgRemove(`${chroot}/etc/motd`);
218
+ // issue
215
219
  this.msgRemove(`${chroot}/etc/issue`);
216
220
  } // to add: openrc and runit for Devuan
217
221
  }
@@ -221,21 +225,23 @@ export default class CliAutologin {
221
225
  */
222
226
  async msgRemove(path) {
223
227
  if (fs.existsSync(path)) {
224
- const rows = fs.readFileSync(path, 'utf8').split('\n');
225
- let cleaned = '';
226
- let remove = false;
227
- for (const row of rows) {
228
- if (row.includes(startMessage)) {
229
- remove = true;
230
- }
231
- if (!remove && row !== '') {
232
- cleaned += row + '\n';
233
- }
234
- if (row.includes(stopMessage)) {
235
- remove = false;
228
+ if (!fs.lstatSync(path).isSymbolicLink()) {
229
+ const rows = fs.readFileSync(path, 'utf8').split('\n');
230
+ let cleaned = '';
231
+ let remove = false;
232
+ for (const row of rows) {
233
+ if (row.includes(startMessage)) {
234
+ remove = true;
235
+ }
236
+ if (!remove && row !== '') {
237
+ cleaned += row + '\n';
238
+ }
239
+ if (row.includes(stopMessage)) {
240
+ remove = false;
241
+ }
236
242
  }
243
+ fs.writeFileSync(path, cleaned, 'utf-8');
237
244
  }
238
- fs.writeFileSync(path, cleaned, 'utf-8');
239
245
  }
240
246
  }
241
247
  }
@@ -21,7 +21,7 @@ export default class Fedora {
21
21
  static async calamaresInstall(verbose = true) {
22
22
  const echo = Utils.setEcho(verbose);
23
23
  try {
24
- await exec(`dnf install ${this.packs4calamares.join(' ')}`, echo);
24
+ await exec(`dnf install -y ${this.packs4calamares.join(' ')}`, echo);
25
25
  }
26
26
  catch {
27
27
  Utils.error(`fedora.calamaresInstall()`);
@@ -785,8 +785,22 @@ export default class Ovary {
785
785
  * syslinux: new version
786
786
  */
787
787
  async syslinux(theme = 'eggs') {
788
- let syspath = path.resolve(__dirname, `../../syslinux/`);
789
- await exec(`cp ${syspath}/* ${this.settings.iso_work}/isolinux/`, this.echo);
788
+ // syslinux
789
+ // await exec(`cp ${this.settings.distro.syslinuxPath}/chain.c32 ${this.settings.iso_work}/isolinux/`, this.echo)
790
+ // await exec(`cp ${this.settings.distro.syslinuxPath}/ldlinux.c32 ${this.settings.iso_work}/isolinux/`, this.echo)
791
+ // await exec(`cp ${this.settings.distro.syslinuxPath}/libcom32.c32 ${this.settings.iso_work}/isolinux/`, this.echo)
792
+ // await exec(`cp ${this.settings.distro.syslinuxPath}/libutil.c32 ${this.settings.iso_work}/isolinux/`, this.echo)
793
+ // await exec(`cp ${this.settings.distro.syslinuxPath}/vesamenu.c32 ${this.settings.iso_work}/isolinux/`, this.echo)
794
+ // syslinux da syspath NON funzions su Arch
795
+ let syspath = path.resolve(__dirname, `../../syslinux`);
796
+ await exec(`cp ${syspath}/chain.c32 ${this.settings.iso_work}/isolinux/`, this.echo);
797
+ await exec(`cp ${syspath}/ldlinux.c32 ${this.settings.iso_work}/isolinux/`, this.echo);
798
+ await exec(`cp ${syspath}/libcom32.c32 ${this.settings.iso_work}/isolinux/`, this.echo);
799
+ await exec(`cp ${syspath}/libutil.c32 ${this.settings.iso_work}/isolinux/`, this.echo);
800
+ await exec(`cp ${syspath}/vesamenu.c32 ${this.settings.iso_work}/isolinux/`, this.echo);
801
+ await exec(`cp ${syspath}/isolinux.bin ${this.settings.iso_work}/isolinux/`, this.echo);
802
+ //isolinux.bin
803
+ //await exec(`cp ${this.settings.distro.isolinuxPath}/isolinux.bin ${this.settings.iso_work}/isolinux/`, this.echo)
790
804
  const isolinuxThemeDest = this.settings.iso_work + 'isolinux/isolinux.theme.cfg';
791
805
  let isolinuxThemeSrc = path.resolve(__dirname, `../../addons/${theme}/theme/livecd/isolinux.theme.cfg`);
792
806
  if (this.theme.includes('/')) {
@@ -14,13 +14,19 @@ export default class Tailor {
14
14
  private category;
15
15
  private costume;
16
16
  private echo;
17
+ private toNull;
17
18
  private verbose;
18
19
  private wardrobe;
20
+ private log;
19
21
  /**
20
22
  * @param wardrobe
21
23
  * @param costume
22
24
  */
23
25
  constructor(costume: string, category?: string);
26
+ /**
27
+ *
28
+ */
29
+ prepare(verbose?: boolean, no_accessories?: boolean, no_firmwares?: boolean): Promise<void>;
24
30
  /**
25
31
  *
26
32
  * @param packages
@@ -28,19 +34,10 @@ export default class Tailor {
28
34
  * @param section
29
35
  * @returns
30
36
  */
31
- helperExists(packages: string[], verbose?: boolean, section?: string): Promise<string[]>;
32
- /**
33
- * - check if every package if installed
34
- * - if find any packages to install, install it
35
- */
36
- helperInstall(packages: string[], comment?: string, cmd?: string): Promise<void>;
37
+ packagesExists(wanted: string[]): Promise<string[]>;
37
38
  /**
38
- *
39
- */
40
- prepare(verbose?: boolean, no_accessories?: boolean, no_firmwares?: boolean): Promise<void>;
41
- /**
42
- *
43
- * @param command
44
- */
45
- titles(command?: string): void;
39
+ * - check if every package if installed
40
+ * - if find any packages to install, install it
41
+ */
42
+ packagesInstall(packages: string[], comment?: string, cmd?: string): Promise<void>;
46
43
  }