Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

cpio: Too many arguments

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
marietto
Posts: 80
Joined: 2014-07-13 16:30

cpio: Too many arguments

#1 Post by marietto »

Hello to everyone.

I'm trying to customize the Debian 11 iso image with cubic. The most important parameter that I should set up within cubic is the following :

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_iommu=on" 
I'm working on a method to add any parameter I may need now and in the future to kernel and maybe I found it,thanks to the help of some good reddit users that put me on the right path. The method is called "Automate the installation of Debian with Preseed". Basically I should create a preseed.cfg file that I should add inside the Debian ISO image so that the installer will read inside of it and it will automate some settings during the installation. At the moment this is the preseed.cfg file that I'm trying to use :

d-i debian-installer/add-kernel-opts string intel_iommu=on
d-i passwd/root-password password marietto

My doubt was : how and where to place the preseed.cfg file ? I've found part of the solution by watching this video tutorial :


https://www.youtube.com/watch?v=QdA7UX5VJjc


and on this github :


https://github.com/Nidouille/Debian-Aut ... stallation


He says to do something like this :

Ajout du fichier de pré configuration dans initrd

Code: Select all

echo preseed.cfg | cpio -H newc -o -A -F isofiles/install.amd/initrd gzip isofiles/install.amd/initrd
I tried,but I've got an error :

Code: Select all

gunzip initrd.gz
echo preseed.cfg | cpio -H newc -o -A -F initrd gzip debian-11-unattended/d-i/initrd
cpio: Too many arguments
Istantanea_2022-10-06_19-03-03.png
Istantanea_2022-10-06_19-03-03.png (183.02 KiB) Viewed 850 times
Last edited by marietto on 2022-10-11 10:44, edited 2 times in total.

peter_irich
Posts: 1403
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: cpio: Too many arguments

#2 Post by peter_irich »

1st, "-o" must be first.
2nd, must not be arguments after the archive name with "-F" option, all file must be enumerates as arguments to echo command.

marietto
Posts: 80
Joined: 2014-07-13 16:30

Re: cpio: Too many arguments

#3 Post by marietto »

I've tried with this :

echo preseed.cfg | cpio -o -H newc -A gzip debian-11-unattended/d-i/initrd -F initrd

but its not good. you have been too vague. Sorry,I'm not an experienced user.

peter_irich
Posts: 1403
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: cpio: Too many arguments

#4 Post by peter_irich »

Then use simple form:

Code: Select all

cpio -o < name-list > archive_name
and every time prepare all the files completely, anew. This scheme always works.

marietto
Posts: 80
Joined: 2014-07-13 16:30

Re: cpio: Too many arguments

#5 Post by marietto »

thanks. this worked :

Code: Select all

echo preseed.cfg | cpio -H newc -o -A -F initrd
2 blocks.
And then :

Code: Select all

gzip initrd
OK
unfortunately a problem comes with the next command :

Code: Select all

/home/ziomario/Scrivania/PassT-Cubic# sudo genisoimage -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot- load-size 4 -boot-info-table -o debian-11-unattended.iso debian-11-unattended

Code: Select all

.....

98.82% done, estimate finish Thu Oct 6 23:11:57 2022

98.98% done, estimate finish Thu Oct 6 23:11:57 2022

99.15% done, estimate finish Thu Oct 6 23:11:57 2022

99.31% done, estimate finish Thu Oct 6 23:11:57 2022

99.47% done, estimate finish Thu Oct 6 23:11:58 2022

99.63% done, estimate finish Thu Oct 6 23:11:58 2022

99.79% done, estimate finish Thu Oct 6 23:11:58 2022

99.96% done, estimate finish Thu Oct 6 23:11:58 2022
the iso image "debian-11-unattended.iso" is not bootable.

maybe it does not boot because the different checksums of the files ?

Instructions says to do :

Code: Select all

md5sum find -follow -type f > md5sum.txt
and I did it. So whats wrong now ?

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: cpio: Too many arguments

#6 Post by sunrat »

@marietto This is the third (?) topic you have started to deal with what is basically the same issue - how to customise your installer.
It is preferable to keep it all under one topic so readers understand what has gone before and maybe be able to help better. It is also essentially cross-posting which is frowned upon here and in most online forums.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

marietto
Posts: 80
Joined: 2014-07-13 16:30

Re: cpio: Too many arguments

#7 Post by marietto »

I don't agree totally with you. What's the same is the general goal,but the problems that I'm talking about into each/every post are different. And I know,from my experience, that people stop to help if a post becomes too much structured.

Post Reply